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[:error] is gone.
Tagz | = | ::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' } } |