class PasswordsController < Devise::PasswordsController
  def new
    super
  end

  def create
    if params[:user] and params[:user][:email] and User.where(:email => params[:user][:email]).first.blank?
      flash[:alert] = "Email is not in the system"
    else
      super
    end

    flash.discard
  end

  protected

  def after_sending_reset_password_instructions_path_for(resource_name)
    after_devise_path
  end
end

class PasswordsController < Devise::PasswordsController
  def new
    super
  end

  def create
    if params[:user] and params[:user][:email] and User.where(:email => params[:user][:email]).first.blank?
      flash[:alert] = "Email is not in the system"
    else
      super
    end
  end

  protected

  def after_sending_reset_password_instructions_path_for(resource_name)
    after_devise_path
  end
end

--- 
+++ 
@@ -9,6 +9,8 @@
     else
       super
     end
+
+    flash.discard
   end
 
   protected
Update PasswordsController to Discard Flash

Discard the flash message in the Passwords Controller in order to ensure
that the flash alert is not displayed for follow-on modals.
