instance method
telephone_field
Ruby on Rails 3.0.20
Since v3.0.20Signature
telephone_field(object_name, method, options = {})
Returns a text_field of type “tel”.
Parameters
-
object_namereq -
methodreq -
optionsopt = {}
Source
# File actionpack/lib/action_view/helpers/form_helper.rb, line 821
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 821
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormHelper