Flowdock
method

email_field_tag

Importance_2
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActionView::Helpers::FormTagHelper
email_field_tag(name, value = nil, options = {}) public

Creates a text field of type “email”.

Options

Examples

email_field_tag 'name'
# => <input id="name" name="name" type="email" />

email_field_tag 'email', 'email@example.com'
# => <input id="email" name="email" type="email" value="email@example.com" />

email_field_tag 'email', nil, class: 'special_input'
# => <input class="special_input" id="email" name="email" type="email" />

email_field_tag 'email', 'email@example.com', class: 'special_input', disabled: true
# => <input disabled="disabled" class="special_input" id="email" name="email" type="email" value="email@example.com" />
Show source
Register or log in to add new notes.