Module

FormTagHelper

Provides a number of methods for creating form tags that doesn’t rely on an ActiveRecord object assigned to the template like FormHelper does. Instead, you provide the names and values manually.

NOTE: The HTML options disabled, readonly, and multiple can all be treated as booleans. So specifying :disabled => true will give disabled="disabled".

Public Methods
check_box_tag Creates a check box form input tag.
field_set_tag Creates a field set for grouping HTML form elements.
file_field_tag Creates a file upload field. If you are using file uploads then you will also need to set the multipart option for the form tag:
form_tag Starts a form tag that points the action to an url configured with url_for_options just like ActionController::Base#url_for. The method for the form defaults to POST.
hidden_field_tag Creates a hidden form input field used to transmit data that would be lost due to HTTP’s statelessness or data that should be hidden from the user.
image_submit_tag Displays an image which when clicked will submit the form.
password_field_tag Creates a password field, a masked text field that will hide the users input behind a mask character.
radio_button_tag Creates a radio button; use groups of radio buttons named the same to allow users to select from a group of options.
select_tag Creates a dropdown selection box, or if the :multiple option is set to true, a multiple choice selection box.
submit_tag Creates a submit button with the text value as the caption.
text_area_tag Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions.
text_field_tag Creates a standard text field; use these text fields to input smaller chunks of text like a username or a search query.
Private Methods
extra_tags_for_form
form_tag_html
form_tag_in_block
html_options_for_form
token_tag
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.