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_ |
Creates a check box form input tag. |
| field_ |
Creates a field set for grouping HTML form elements. |
| file_ |
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_ |
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_ |
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_ |
Displays an image which when clicked will submit the form. |
| label_ |
Creates a label field |
| password_ |
Creates a password field, a masked text field that will hide the users input behind a mask character. |
| radio_ |
Creates a radio button; use groups of radio buttons named the same to allow users to select from a group of options. |
| select_ |
Creates a dropdown selection box, or if the :multiple option is set to true, a multiple choice selection box. |
| submit_ |
Creates a submit button with the text value as the caption. |
| text_ |
Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions. |
| text_ |
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_ |
|
| form_ |
|
| form_ |
|
| html_ |
|
| token_ |
|
<code/>and<pre/>for code samples.