From 78e8f038750165c1ce48a7f3dc22762f90cfa66a Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Fri, 8 Mar 2013 10:57:20 +1100 Subject: Would help if I wrote that helper correctly --- app/helpers/link_to_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/helpers/link_to_helper.rb') diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index 9657845e0..44d85d830 100755 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -96,8 +96,8 @@ module LinkToHelper end def public_body_both_links(public_body) - link_to(''.html_safe, public_body_url(@blank_contact)) + " " + - link_to(h(@blank_contact.name), admin_body_show_path(@blank_contact)) + link_to(''.html_safe, public_body_url(public_body)) + " " + + link_to(h(public_body.name), admin_body_show_path(public_body)) end # Users -- cgit v1.2.3