I meant nil in the subject, not new.
Sorry for the typo.

-fred



On Thu, Sep 22, 2011 at 10:21 AM, Fred wrote:

Hello everyone,

I have a rails app which uses email as login name. At some point, I
have to search the user, in the User model by email. For some reason,
the method User.find_by_email(email) returns nil, even though the user
is in the database.

The same applies for any find_by_* method that searches by any
database column. I was able to find the user using the User.find

Does anyone have an idea of what might be going on?

thanks,
-fred
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 1, '11 at 2:32p
activeOct 1, '11 at 2:32p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Frederiko Costa: 1 post

People

Translate

site design / logo © 2022 Grokbase