April 3, 2008
Use quote_value in Rails 2
This is just a note to all who, like me, wonder why the heck ActiveRecord’s quote method in model classes doesn’t work anymore in Rails 2.x: quote seemingly has been replaced by quote_value, though this is not listed on the deprecation page. So if you get an error that says undefined method `quote’ for your model class, replace the calls to quote by quote_value.
Filed by Arne at 9:28 pm under api, programming, rails, ruby, wtf
.
Wow. Thanks. What a pain.