app/controllers/users/passwords_controller.rb
def create
      super do |user|
        if user.errors.added?(:email, :blank)
          respond_with(user) && return
        end
      end
    end
# Intercept the creation of the reset token given an email address, and check this
# value as otherwise Devise will not error if the email address is left blank.
# This will not error on malformed email addresses as we are in Paranoid mode and Devise
# will consider any input as valid, but at least we cover the blank scenario.
Intercept the creation of the reset token given an email address, and check this
value as otherwise Devise will not error if the email address is left blank.
This will not error on malformed email addresses as we are in Paranoid mode and Devise
will consider any input as valid, but at least we cover the blank scenario.
Intercept the creation of the reset token given an email address and check this value as otherwise Devise will not error if the email address is left blank . This will not error on malformed email addresses as we are in Paranoid mode and Devise will consider any input as valid but at least we cover the blank scenario .
def create
      super do |user|
        if user.errors.added?(:email, :blank)
          respond_with(user) && return
        end
      end
    end
def create super do | user | if user . errors . added? ( :email , :blank ) respond_with ( user ) && return end end end
Intercept the creation of the reset token given an email address, and check this
value as otherwise Devise will not error if the email address is left blank.
Intercept the creation of the reset token given an email address and check this value as otherwise Devise will not error if the email address is left blank .