Parent

Methods

Files

Class/Module Index [+]

Quicksearch

SimpleForm::Inputs::StringInput

Public Instance Methods

input() click to toggle source
# File lib/simple_form/inputs/string_input.rb, line 6
def input
  unless string?
    input_html_classes.unshift("string")
    input_html_options[:type] ||= input_type if html5?
  end

  add_size!
  @builder.text_field(attribute_name, input_html_options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.