Class: SimpleBootstrapForm::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
lib/simple_bootstrap_form/form_builder.rb

Instance Method Summary collapse

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, options = {})
  klass = map_object_attribute_to_field_class name, options
  klass.new(self, @template, name, options).to_s
end