Update for Rails 3.0.5

I found this nice plugin, but couldn't get it to work for Rails 3.0.5, so I took a stab at updating it to do so.

Cheers,
Anthony