Module Ramaze::Helper
In: lib/ramaze/helper/user.rb
lib/ramaze/helper/ultraviolet.rb
lib/ramaze/helper/identity.rb
lib/ramaze/helper/thread.rb
lib/ramaze/helper/simple_captcha.rb
lib/ramaze/helper/upload.rb
lib/ramaze/helper/xhtml.rb
lib/ramaze/helper/remarkably.rb
lib/ramaze/helper/flash.rb
lib/ramaze/helper/layout.rb
lib/ramaze/helper/link.rb
lib/ramaze/helper/cache.rb
lib/ramaze/helper/blue_form.rb
lib/ramaze/helper/email.rb
lib/ramaze/helper/gravatar.rb
lib/ramaze/helper/gestalt.rb
lib/ramaze/helper/paginate.rb
lib/ramaze/helper/erector.rb
lib/ramaze/helper/auth.rb
lib/ramaze/helper/request_accessor.rb
lib/ramaze/helper/markaby.rb
lib/ramaze/helper/bench.rb
lib/ramaze/helper/send_file.rb
lib/ramaze/helper/localize.rb
lib/ramaze/helper/stack.rb
lib/ramaze/helper/disqus.rb
lib/ramaze/helper/csrf.rb
lib/ramaze/helper/formatting.rb
lib/ramaze/helper/maruku.rb
lib/ramaze/helper/tagz.rb

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.

Classes and Modules

Module Ramaze::Helper::Auth
Module Ramaze::Helper::Bench
Module Ramaze::Helper::BlueForm
Module Ramaze::Helper::CSRF
Module Ramaze::Helper::Cache
Module Ramaze::Helper::Disqus
Module Ramaze::Helper::Email
Module Ramaze::Helper::Erector
Module Ramaze::Helper::Flash
Module Ramaze::Helper::Formatting
Module Ramaze::Helper::Gestalt
Module Ramaze::Helper::Gravatar
Module Ramaze::Helper::Identity
Module Ramaze::Helper::Layout
Module Ramaze::Helper::Link
Module Ramaze::Helper::Localize
Module Ramaze::Helper::Markaby
Module Ramaze::Helper::Maruku
Module Ramaze::Helper::Paginate
Module Ramaze::Helper::Remarkably
Module Ramaze::Helper::RequestAccessor
Module Ramaze::Helper::SendFile
Module Ramaze::Helper::SimpleCaptcha
Module Ramaze::Helper::Stack
Module Ramaze::Helper::Thread
Module Ramaze::Helper::Ultraviolet
Module Ramaze::Helper::Upload
Module Ramaze::Helper::UserHelper
Module Ramaze::Helper::XHTML

Constants

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 &amp; Oranges</h1>"
    tagz { h1_(:class => 'fruits&floots'){ 'Apples' } }

[Validate]