phone_field_tag

phone_field_tag(name, value = nil, options = {}) Instance Public methods Alias for: telephone_field_tag

radio_button_tag

radio_button_tag(name, value, checked = false, options = {}) Instance Public methods Creates a radio button; use groups of radio buttons named the same to allow users to select from a group of options. Options :disabled - If set to true, the user will not be able to use this input. Any other key creates standard HTML options for the tag. Examples radio_button_tag 'gender', 'male' # => <input id="gender_male" name="gender" type="radio" value="male" /> radio_button_ta

range_field_tag

range_field_tag(name, value = nil, options = {}) Instance Public methods Creates a range form element. Options Accepts the same options as number_field_tag.

search_field_tag

search_field_tag(name, value = nil, options = {}) Instance Public methods Creates a text field of type âsearchâ. Options Accepts the same options as text_field_tag.

select_tag

select_tag(name, option_tags = nil, options = {}) Instance Public methods Creates a dropdown selection box, or if the :multiple option is set to true, a multiple choice selection box. Helpers::FormOptions can be used to create common select boxes such as countries, time zones, or associated records. option_tags is a string containing the option tags for the select box. Options :multiple - If set to true the selection will allow multiple choices. :disabled - If set to true, the u

submit_tag

submit_tag(value = "Save changes", options = {}) Instance Public methods Creates a submit button with the text value as the caption. Options :data - This option can be used to add custom data attributes. :disabled - If true, the user will not be able to use this input. Any other key creates standard HTML options for the tag. Data attributes confirm: 'question?' - If present the unobtrusive JavaScript drivers will provide a prompt with the question specified. If the user ac

telephone_field_tag

telephone_field_tag(name, value = nil, options = {}) Instance Public methods Creates a text field of type âtelâ. Options Accepts the same options as text_field_tag. phone_field_tag

text_area_tag

text_area_tag(name, content = nil, options = {}) Instance Public methods Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions. Options :size - A string specifying the dimensions (columns by rows) of the textarea (e.g., â25x10â). :rows - Specify the number of rows in the textarea :cols - Specify the number of columns in the textarea :disabled - If set to true, the user will not be able to use this input. :escape - By default, t

text_field_tag

text_field_tag(name, value = nil, options = {}) Instance Public methods Creates a standard text field; use these text fields to input smaller chunks of text like a username or a search query. Options :disabled - If set to true, the user will not be able to use this input. :size - The number of visible characters that will fit in the input. :maxlength - The maximum number of characters that the browser will allow the user to enter. :placeholder - The text contained in the fie

time_field_tag

time_field_tag(name, value = nil, options = {}) Instance Public methods Creates a text field of type âtimeâ. Options :min - The minimum acceptable value. :max - The maximum acceptable value. :step - The acceptable value granularity. Otherwise accepts the same options as text_field_tag.