Class: SimpleBootstrapForm::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- SimpleBootstrapForm::FormBuilder
- Defined in:
- lib/simple_bootstrap_form/form_builder.rb
Instance Method Summary collapse
-
#input(name, options = {}) ⇒ Object
Context inherited from ActionView::Helpers::FormBuilder:.
Instance Method Details
#input(name, options = {}) ⇒ Object
Context inherited from ActionView::Helpers::FormBuilder:
@template
object
9 10 11 12 |
# File 'lib/simple_bootstrap_form/form_builder.rb', line 9 def input(name, = {}) klass = map_object_attribute_to_field_class name, klass.new(self, @template, name, ).to_s end |