A flash messages helper for Cuba apps
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/cuba
test
.gitignore
README.md
cuba-flash.gemspec
ruby-version.sample

README.md

Cuba-Flash

Cuba Flash provides flash messages to Cuba apps.

Install

gem install cuba-flash

Usage

require "cuba"
require "cuba/flash"

Cuba.use Rack::Session::Cookie, :secret => "super secret key"
Cuba.use Cuba::Flash

Cuba.define do
  on get, root do
    flash[:info] = "Flash message"
    
    res.write flash[:info]
  end
end