Module: SearchHelper
- Defined in:
- app/helpers/search_helper.rb
Instance Method Summary collapse
Instance Method Details
#raro_search_form(model, partial, collection_name, url, scope = nil, sort = nil) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/search_helper.rb', line 3 def raro_search_form(model, partial, collection_name, url, scope = nil, sort = nil) @buffer = raro_before_form(model, partial, collection_name, url, scope, sort) @model = model yield @buffer << raro_submit(I18n.t('search')) @buffer << raro_after_form @buffer << raro_script @buffer.html_safe end |