class ApplicationController add_flash_types :info, :error, :warning end # some ways to add keys of flash hash manually