instance method
telephone_field
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
telephone_field(object_name, method, options = {})
Returns a text_field of type “tel”.
telephone_field("user", "phone") # => <input id="user_phone" name="user[phone]" size="30" type="tel" />
Parameters
-
object_namereq -
methodreq -
optionsopt = {}
Source
# File actionpack/lib/action_view/helpers/form_helper.rb, line 910
def telephone_field(object_name, method, options = {})
InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("tel", options)
end
Defined in actionpack/lib/action_view/helpers/form_helper.rb line 910
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormHelper