Files

SimpleForm::Inputs::NumericInput

Public Instance Methods

input() click to toggle source
# File lib/simple_form/inputs/numeric_input.rb, line 4
def input
  @builder.text_field(attribute_name, input_html_options)
end
input_html_classes() click to toggle source
# File lib/simple_form/inputs/numeric_input.rb, line 15
def input_html_classes
  super.unshift("numeric")
end
input_html_options() click to toggle source
# File lib/simple_form/inputs/numeric_input.rb, line 8
def input_html_options
  input_options = super
  input_options[:type] ||= "number"
  input_options[:size] ||= SimpleForm.default_input_size
  input_options
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.