flash messages rails code example
Example: flash in rails
class ApplicationController
add_flash_types :info, :error, :warning
end
# some ways to add keys of flash hash manually
class ApplicationController
add_flash_types :info, :error, :warning
end
# some ways to add keys of flash hash manually