Module: Shipyard::FormHelper
- Defined in:
- app/helpers/shipyard/form_helper.rb
Instance Method Summary collapse
- #input_select_tag(name, choices, container_options = {}, select_options = {}) ⇒ Object
- #input_text(name, value = nil, options = {}) ⇒ Object
Instance Method Details
#input_select_tag(name, choices, container_options = {}, select_options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/helpers/shipyard/form_helper.rb', line 8 def input_select_tag(name, choices, ={}, ={}) [:class] = "input-select-container #{[:class]}" content_tag :div, do [:class] = "input input-select #{[:class]}" select_tag name, choices, end end |
#input_text(name, value = nil, options = {}) ⇒ Object
3 4 5 6 |
# File 'app/helpers/shipyard/form_helper.rb', line 3 def input_text(name, value=nil, ={}) [:class] = "input input-text #{[:class]}" text_field_tag name, value, end |