[LRUG] Baffled by inconsistent behaviour of Rails find_by_* method

Mark Woods mwoods at online.ie
Wed Aug 24 04:09:49 PDT 2011


> There are indeed those three different specification codes in the database,
> and each of them begins with "4400", but why does the same method find only
> one when run from the console?

I'm scared... is Exammodule.find_all_by_specificationcode really
finding partial matches when given a string argument? If so, what
query is activerecord generating?


Mark



More information about the Chat mailing list