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

John Winters john at sinodun.org.uk
Tue Aug 23 08:11:39 PDT 2011


On 23/08/11 16:05, John Winters wrote:
> I'm gnashing my teeth over something very odd in a Rails application.
[snip]

It is truly said that to solve a problem, all you have to do is explain 
it to the coat stand.

The subtle difference was that in the application, the call was effectively:

Exammodule.find_by_specificationcode(4400)

where it should have been:

Exammodule.find_by_specificationcode("4400")

Sorry to have troubled you.

John



More information about the Chat mailing list