Archive

Posts Tagged ‘ruby’

How to Restart PostgreSQL While Developing a Rails App

January 13th, 2012 No comments

While developing a Rails apps using PostgreSQL (unlike MySQL) I often run out of db connections and see errors like “FATAL:  remaining connection slots are reserved for non-replication superuser connections” and when I do, my Rails app stops working. Restarting Postgres fixing the problem, but it was harder to restart postgres that I expected. Here’s how I do it. Read more…

How To Use Facebook Open Streams With Facebooker

September 15th, 2009 4 comments

facebook_extended_permissions

I would like my Facebook Connect app to publish stories to my users’ Facebook news stream. I went looking for how do this with Facebooker and figured out an answer.

Read more…

How To Include a Gem’s Rake Tasks in Your Rails App

September 14th, 2009 3 comments

Rake tasks contained in a gem are not automatically available to a rails app that requires the gem. Whether that’s the right way to do things is under debate, but in the mean time there are a couple workarounds.

Read more…

Categories: code Tags: , , , , ,

How To Permit A Blank Email Field With AuthLogic

September 9th, 2009 No comments

errors from blank email with AuthLogic

I too ran into some trouble before discovering that my beloved AuthLogic is validating my email field. The validation is a good thing overall, but I want to support blank email addresses as well as properly formatted ones.

Read more…