1 2 3 4 5 6 7 8 9
module SearchHelper def search(target) render 'common/search', path: url_for(target), id: target.to_s.singularize, submit_label: t('.search', cascade: true) end end