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