method

to_number_field_tag

rails latest stable - Class: ActionView::Helpers::InstanceTagMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

to_number_field_tag(field_type, options = {})
public

No documentation available.

# File actionpack/lib/action_view/helpers/form_helper.rb, line 924
      def to_number_field_tag(field_type, options = {})
        options = options.stringify_keys
        if range = options.delete("in") || options.delete("within")
          options.update("min" => range.min, "max" => range.max)
        end
        to_input_field_tag(field_type, options)
      end