Class: SimpleForm::Inputs::StringInput
- Defined in:
- lib/simple_form/inputs/string_input.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute_name, #column, #html_classes, #input_html_classes, #input_html_options, #input_type, #options, #reflection
Instance Method Summary collapse
Methods inherited from Base
#additional_classes, disable, enable, #initialize, #input_class, #input_options
Methods included from SimpleForm::I18nCache
#get_i18n_cache, #i18n_cache, #reset_i18n_cache
Methods included from Components::Readonly
Methods included from Components::Placeholders
#placeholder, #placeholder_text
Methods included from Components::Pattern
Methods included from Components::MinMax
Methods included from Components::Maxlength
Methods included from Components::LabelInput
Methods included from Components::HTML5
#has_required?, #html5, #html5?, #initialize
Methods included from Components::Hints
Methods included from Components::Errors
Methods included from Helpers::Validators
Constructor Details
This class inherits a constructor from SimpleForm::Inputs::Base
Instance Method Details
#input ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/simple_form/inputs/string_input.rb', line 6 def input unless string? input_html_classes.unshift("string") [:type] ||= input_type if html5? end add_size! @builder.text_field(attribute_name, ) end |