summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-09 12:51:16 +0200
committerAzul <azul@leap.se>2014-07-09 12:51:16 +0200
commit0cc11ebb609de225fbeacbf80788b992b88b6ce6 (patch)
tree3dbf8562e91ac7d7c8759a0516efbdca93cbdeff /app/helpers
parentbdb4b0e275c205b0b44bbe3cc4ec4c162b309b37 (diff)
list identities based on search only
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