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.

One Response to “Use quote_value in Rails 2”

  1. August 7th, 2008 | 3:16 pm

    Wow. Thanks. What a pain.

Leave a reply

Warning: comments containing links will be eaten by our spam protection.