Methods

Class/Module Index [+]

Quicksearch

Padrino::Contrib::Helpers::Flash

Dead simple version of rack-flash. You still use flash without session, but remember that they can't work after a redirect.

Usage:

register Padrino::Contrib::Helpers::Flash

Public Class Methods

registered(app) click to toggle source
# File lib/padrino-contrib/helpers/flash.rb, line 14
def self.registered(app)
  app.before { @_flash, session[:_flash] = session[:_flash], nil if settings.sessions? && session[:_flash] }
  app.helpers InstanceMethods
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.