diff options
author | louise <louise> | 2007-10-16 21:17:14 +0000 |
---|---|---|
committer | louise <louise> | 2007-10-16 21:17:14 +0000 |
commit | 8277d14fc923089bef47ac92520fabec3dea64b7 (patch) | |
tree | 76f646b9b2247d9c91bd86727141466a94880d45 /app/helpers/application_helper.rb | |
parent | 254c3a4bcde7d82dd8a3d7cafeb6a8fcf22cd433 (diff) |
Added some named routes
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b3c62fc5e..55e71a42e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: application_helper.rb,v 1.6 2007-10-09 20:02:13 francis Exp $ +# $Id: application_helper.rb,v 1.7 2007-10-16 21:17:14 louise Exp $ module ApplicationHelper @@ -38,6 +38,14 @@ module ApplicationHelper def simple_date(date) return date.strftime("%e %B %Y") end + + def request_link(info_request) + link_to h(info_request.title), request_url(:id => info_request) + end + + def public_body_link(public_body) + link_to h(public_body.short_name), public_body_url(:short_name => public_body.short_name) + end end |