undefined method `conditions_by_like’ for Classname::Class

If you get that perplexing error, just run:

rake db:migrate

The problem is that the database is out of synch with the models, and your schema.rb needs to be updated.

Followup 8/14/2007: having these methods auto-generated is inconsistent at best, the code is available here if you’d rather eliminate the cat and mouse game and move on to larger problems (written by Alan Marcero).

Leave a Reply