Help with Ruby on Rails "find by" function
I have a database that has stored information of some users.
I know for example: User.find(1) will return the user with id:1

What should i call to find a user by email. I searched a lot but i could not find anything. 

I also tried User.find(:email => "xyz@abc.com") but it doesnt work. Please help.

Thanks


Help with Ruby on Rails "find by" function
===

I have a database that has stored information of some users.
I know for example: User.find(1) will return the user with id:1

What should i call to find a user by email. I searched a lot but i could not find anything. 

I also tried User.find(:email => "xyz@abc.com") but it doesnt work. Please help.

Thanks

