I have the following code in a Rails controller:
flash.now[:notice] = \'Successfully checked in\' redirect_to check_in_path
Then in the /check_
redirect_to new_user_session_path, alert: "Invalid email or password"
in place of :alert you can use :notice
:alert
:notice
to display