Using Devise, I would like to know if there is a way to remove a particular flash message? (Signed in Successfully).
I care about other msg in the view, so It is jus
Another flexible way to to this is to unset the notice after the action:
class SessionsController < Devise::SessionsController after_action :remove_notice, only: :destroy private def remove_notice flash[:notice] = nil end end
With this solution you can add conditions to removing or not the notice.