Class: Admin::SearchHelper::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
app/helpers/admin/search_helper.rb

Instance Method Summary collapse

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, options = {}, html_options = {})
   :div, class: 'form-group col-md-2' do
    super(method, collection, value_method, text_method, options, { class: 'form-control', style: 'margin-right: 5px;' }.merge(html_options))
  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, options = {}, html_options = {}, &block)
   :div, class: 'form-group col-md-2' do
    super(method, choices, options, { class: 'form-control', style: 'margin-right: 5px;' }.merge(html_options), &block)
  end
end