Method: Bootstrap::FormHelper#form_actions

Defined in:
app/helpers/bootstrap/form_helper.rb

#form_actions(options = {}) ⇒ String

Convience method for Bootstrap form action DIV.

Parameters:

  • options (Hash) (defaults to: {})

    options become html attributes of returned <div>

Returns:

  • (String)

    <div> with yielded block



48
49
50
51
52
53
54
55
# File 'app/helpers/bootstrap/form_helper.rb', line 48

def form_actions(options={})
  options = canonicalize_options(options)
  options = ensure_class(options, 'form-actions')
  
  (:div, options) do
    yield
  end
end