summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/search_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
new file mode 100644
index 0000000..35b9358
--- /dev/null
+++ b/app/helpers/search_helper.rb
@@ -0,0 +1,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