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

James Adam james at lazyatom.com
Tue Aug 23 15:03:18 PDT 2011


Glad that we could help :)



On 23 Aug 2011, at 16:11, John Winters <john at sinodun.org.uk> wrote:

> 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
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org



More information about the Chat mailing list