Add custom flash keys
ActionController::Base
has a default flash types of [:notice]
allowing you to pass a key to #redirect_to
:
However, you can add :error
as a custom type to get the convenience argument:
ActionController::Base
has a default flash types of [:notice]
allowing you to pass a key to #redirect_to
:
However, you can add :error
as a custom type to get the convenience argument: