instance method
range_field
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
range_field(object_name, method, options = {})
Returns an input tag of type “range”.
Options
-
Accepts same options as range_field_tag
Parameters
-
object_namereq -
methodreq -
optionsopt = {}
Source
# File actionpack/lib/action_view/helpers/form_helper.rb, line 945
def range_field(object_name, method, options = {})
InstanceTag.new(object_name, method, self, options.delete(:object)).to_number_field_tag("range", options)
end
Defined in actionpack/lib/action_view/helpers/form_helper.rb line 945
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormHelper