module Forme::ERB

  1. lib/forme/erb.rb
  2. lib/forme/erb_form.rb
  3. show all


Public Class

  1. add_hidden_tag

Classes and Modules

  1. Forme::ERB::Helper
  2. Forme::ERB::Form



Public Class methods

add_hidden_tag (&block)

Add a hidden tag proc that will be used for all forms created via Forme::ERB::Helper#form. The block is yielded the Forme::Tag object for the form tag. The block should return either nil if hidden tag should be added, or a Forme::Tag object (or an array of them), or a hash with keys specifying the name of the tags and the values specifying the values of the tags .

[show source]
   # File lib/forme/erb.rb
13 def self.add_hidden_tag(&block)
14   HIDDEN_TAGS << block
15 end