module Outpost::Controller::Helpers
Public Instance Methods
notice(message)
click to toggle source
Public: Set the flash message, only for HTML requests.
message - (String) The message to add to the flash.
Examples
notice("Success") flash[:notice] # => "Success"
Returns nothing.
# File lib/outpost/controller/helpers.rb, line 19 def notice(message) flash[:notice] = message if request.format.html? end