{"action":"closed","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/3729","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/3729/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/3729/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/3729/events","html_url":"https://github.com/plataformatec/devise/issues/3729","id":103550768,"number":3729,"title":"Can't finder user with email params.","user":{"login":"skorecky","id":10525,"avatar_url":"https://avatars.githubusercontent.com/u/10525?v=3","gravatar_id":"","url":"https://api.github.com/users/skorecky","html_url":"https://github.com/skorecky","followers_url":"https://api.github.com/users/skorecky/followers","following_url":"https://api.github.com/users/skorecky/following{/other_user}","gists_url":"https://api.github.com/users/skorecky/gists{/gist_id}","starred_url":"https://api.github.com/users/skorecky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skorecky/subscriptions","organizations_url":"https://api.github.com/users/skorecky/orgs","repos_url":"https://api.github.com/users/skorecky/repos","events_url":"https://api.github.com/users/skorecky/events{/privacy}","received_events_url":"https://api.github.com/users/skorecky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-27T16:50:21Z","updated_at":"2015-08-27T17:37:45Z","closed_at":"2015-08-27T17:37:45Z","body":"When I do something like \r\n`User.find_by_email(\"foo@bar.com\") => #<User>`\r\n\r\nBut when I try to pass in the email from params\r\n`User.find_by_email(params[:email]) => nil`\r\n\r\nI don't understand why I can't get a user object back when I try passing it in with params. I can use ID and that works, but if I try it with email I get back nil."}}