Just try adding this code to session_controller.rb.
class SessionsController < Devise::SessionsController
after_action :clear_sign_signout_flash, :only => [:create, :destroy]
protected
def clear_sign_signout_flash
if flash.key?(:notice)
flash.delete(:notice)
end
end
end
Hope this helps :-)
source
share