From fcbe8e42a02474578edd8487b8a5f08a95adda6f Mon Sep 17 00:00:00 2001 From: maxwell Date: Tue, 29 Jun 2010 20:54:53 -0700 Subject: [PATCH] RS MS slightly less explosive end if you call real name on someone that doesn't have a profile --- app/helpers/application_helper.rb | 2 +- app/models/person.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a77a671d8..9c7d65c1e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -29,7 +29,7 @@ module ApplicationHelper when "User" user_path(person) else - link_to "unknown person", "#" + "unknown person" end end diff --git a/app/models/person.rb b/app/models/person.rb index bcdcea5bf..73161780b 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -26,7 +26,7 @@ class Person before_validation :clean_url def real_name - profile.first_name + " " + profile.last_name + profile.first_name.to_s + " " + profile.last_name.to_s end