I'm having a problem matching user password using devise gem in rails. User password stored on my db which is encrypted_password and i am trying to find user by password, but I don't understand how to match password from form and encrypted_password in my db. User.find_by_email_and_password(params[:user][:email], params[:user][:password])

