Module: FormtasticBootstrap::Helpers::ActionsHelper
- Includes:
- Formtastic::Helpers::ActionsHelper, FieldsetWrapper
- Included in:
- FormBuilder
- Defined in:
- lib/formtastic-bootstrap/helpers/actions_helper.rb
Instance Method Summary collapse
Instance Method Details
#actions(*args, &block) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/formtastic-bootstrap/helpers/actions_helper.rb', line 8 def actions(*args, &block) = args. [:class] ||= "form-actions" if block_given? field_set_and_list_wrapping(, &block) else args = default_actions if args.empty? contents = args.map { |action_name| action(action_name) } field_set_and_list_wrapping(, contents) end end |