Method: ActionView::Helpers::InstanceTagMethods#to_number_field_tag
- Defined in:
- lib/action_view/helpers/form_helper.rb
#to_number_field_tag(field_type, options = {}) ⇒ Object
924 925 926 927 928 929 930 |
# File 'lib/action_view/helpers/form_helper.rb', line 924 def to_number_field_tag(field_type, = {}) = .stringify_keys if range = .delete("in") || .delete("within") .update("min" => range.min, "max" => range.max) end to_input_field_tag(field_type, ) end |