Class: Effective::FormInputs::Save
- Inherits:
-
Effective::FormInput
- Object
- Effective::FormInput
- Effective::FormInputs::Save
- Defined in:
- app/models/effective/form_inputs/save.rb
Constant Summary
Constants inherited from Effective::FormInput
Effective::FormInput::BLANK, Effective::FormInput::EXCLUSIVE_CLASS_PREFIXES, Effective::FormInput::EXCLUSIVE_CLASS_SUFFIXES
Instance Attribute Summary
Attributes inherited from Effective::FormInput
Instance Method Summary collapse
Methods inherited from Effective::FormInput
#feedback_options, #hint_options, #initialize, #input_group_options, #input_js_options, #label_options, #wrapper_options
Constructor Details
This class inherits a constructor from Effective::FormInput
Instance Method Details
#input_html_options ⇒ Object
9 10 11 |
# File 'app/models/effective/form_inputs/save.rb', line 9 def { class: 'btn btn-primary', type: 'submit', name: 'commit', value: name } end |
#to_html(&block) ⇒ Object
5 6 7 |
# File 'app/models/effective/form_inputs/save.rb', line 5 def to_html(&block) content_tag(:button, name, [:input]) end |