Class: Admin::SearchHelper::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- Admin::SearchHelper::FormBuilder
- Defined in:
- app/helpers/admin/search_helper.rb
Instance Method Summary collapse
- #collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
- #select(method, choices = nil, options = {}, html_options = {}, &block) ⇒ Object
Instance Method Details
#collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
24 25 26 27 28 |
# File 'app/helpers/admin/search_helper.rb', line 24 def collection_select(method, collection, value_method, text_method, = {}, = {}) content_tag :div, class: 'form-group col-md-2' do super(method, collection, value_method, text_method, , { class: 'form-control', style: 'margin-right: 5px;' }.merge()) end end |
#select(method, choices = nil, options = {}, html_options = {}, &block) ⇒ Object
18 19 20 21 22 |
# File 'app/helpers/admin/search_helper.rb', line 18 def select(method, choices = nil, = {}, = {}, &block) content_tag :div, class: 'form-group col-md-2' do super(method, choices, , { class: 'form-control', style: 'margin-right: 5px;' }.merge(), &block) end end |