Module: GenericFormFor::Helpers::InputHelper
- Included in:
- FormBuilder
- Defined in:
- lib/generic_form_for/helpers/input_helper.rb
Instance Method Summary collapse
Instance Method Details
#input(method, options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/generic_form_for/helpers/input_helper.rb', line 5 def input(method, = {}) = .dup [:as] ||= default_input_type(method, ) klass = input_class([:as]) klass.new(self, template, @object, @object_name, method, column_for(method), ).to_html end |