Rails: Why does find_by not work on my ActiveRecord model?
- by randombits
I have a simple model named Foo.
Foo has two columns, bar and foobar.
Doing a simple Foo.find_by_bar("a") is returning nil. There is a record in the table where bar contains a. Also, what's even more troubling, is I don't see the query even happening in the development log.
A simple Foo.find(1) works though.