RS MS slightly less explosive end if you call real name on someone that doesn't have a profile

This commit is contained in:
maxwell 2010-06-29 20:54:53 -07:00
parent 448fcf8f89
commit fcbe8e42a0
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ module ApplicationHelper
when "User"
user_path(person)
else
link_to "unknown person", "#"
"unknown person"
end
end

View file

@ -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