i don't know where "user_name" comes from but i think you are passing
in user_name where you search for the email.

"@user = User.find_by_email(user_name)"

change it to:

"@user = User.find_by_email(user_email)" or however your variable is
called

greets

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to