Hi, > Shop.find(123) - returns the shop > Shop.where(:id => 123) - returns the shop > but > Shop.find_by_id(123) returns nil > same for find_by_name, etc.
Here on Mac OS X with PostgreSQL, Shop.find_by_id and find_by_name return the expected instance. Could it be linked to sqlite3 or Windows? -- Thibaut -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
