update to work with rails 3
Merge pull request #2 from jtoy/master

I had to change this to get it to work on rails 3.