Method: ActionView::Helpers::FormHelper#email_field
- Defined in:
- actionview/lib/action_view/helpers/form_helper.rb
#email_field(object_name, method, options = {}) ⇒ Object
Returns a text_field of type “email”.
email_field("user", "address")
# => <input id="user_address" name="user[address]" type="email" />
1566 1567 1568 |
# File 'actionview/lib/action_view/helpers/form_helper.rb', line 1566 def email_field(object_name, method, = {}) Tags::EmailField.new(object_name, method, self, ).render end |