module Ramaze::Helper
The purpose of this class is to provide an easy way of setting/retrieving from the current flash.
Flash is a way to keep a temporary pairs of keys and values for the duration of two requests, the current and following.
Time for an example. On the first request, for example on registering:
flash[:error] = "You should reconsider your username, it's taken already" redirect r(:register)
This is the request from the redirect:
do_stuff if flash[:error]
On the request after this, flash is gone.
This is called Identity to avoid collisions with the original openid.rb It provides a nice and simple way to provide and control access over the OpenID authentication model.
Constants
- Tagz
Allows you to use some shortcuts for Tagz in your Controller. use this inside your controller to directly build Tagz Refer to the Tagz-documentation and testsuite for more examples.
Usage:
tagz { h1_{ "Apples & Oranges" } } #=> "<h1>Apples & Oranges</h1>" tagz { h1_(:class => 'fruits&floots'){ 'Apples' } }