aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/link_to_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index d64ce253d..f3e705196 100644
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: link_to_helper.rb,v 1.45 2008-10-17 20:32:42 francis Exp $
+# $Id: link_to_helper.rb,v 1.46 2008-10-20 10:20:57 francis Exp $
module LinkToHelper
@@ -141,6 +141,9 @@ module LinkToHelper
end
return url
end
+ def search_link(query, postfix = nil)
+ link_to h(query), search_url(query, postfix)
+ end
# Admin pages
def admin_url(relative_path)