Class: Formtastic::Actions::ButtonAction
- Inherits:
-
Object
- Object
- Formtastic::Actions::ButtonAction
- Defined in:
- lib/formtastic/actions/button_action.rb
Overview
document i18n keys
document i18n translation with :label (?)
Outputs a <button type="submit">
or <button type="reset">
wrapped in the standard <li>
wrapper. This is an alternative choice for :submit
and :reset
actions, which render with
<input type="submit">
and <input type="reset">
by default.
Instance Attribute Summary
Attributes included from Base
#builder, #method, #object, #object_name, #options, #template
Instance Method Summary collapse
-
#to_html ⇒ Object
TODO reset_action class?.
Methods included from Buttonish
#extra_button_html_options, #supported_methods
Methods included from Base
#accesskey, #button_html, #button_html_from_options, #default_button_html, #default_wrapper_classes, #default_wrapper_html_options, #default_wrapper_id, #extra_button_html_options, #initialize, #supported_methods, #text, #wrapper, #wrapper_class, #wrapper_classes_from_options, #wrapper_html_options, #wrapper_html_options_from_options, #wrapper_id, #wrapper_id_from_options
Methods included from LocalizedString
Instance Method Details
#to_html ⇒ Object
TODO reset_action class?
61 62 63 64 65 |
# File 'lib/formtastic/actions/button_action.rb', line 61 def to_html wrapper do template.(text, ) end end |