From d55a21c4587d8f2e547f758182f7a611a55d828c Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Fri, 29 Jul 2011 18:37:46 -0700 Subject: [PATCH] just kidding. totally going to namespace users --- app/helpers/application_helper.rb | 4 ++-- config/routes.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 936e9ce64..3a33d7c71 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -52,7 +52,7 @@ module ApplicationHelper opts[:class] ||= "" opts[:class] << " self" if defined?(user_signed_in?) && user_signed_in? && current_user.person == person if person.local? - " + " #{h(person.name)} ".html_safe else @@ -72,7 +72,7 @@ module ApplicationHelper link_to person_image_tag(person, opts[:size]), person_photos_path(person) else if person.local? - " + " #{person_image_tag(person)} ".html_safe else diff --git a/config/routes.rb b/config/routes.rb index d1f8260cf..6080af18e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -154,7 +154,7 @@ Diaspora::Application.routes.draw do get 'mobile/toggle', :to => 'home#toggle_mobile', :as => 'toggle_mobile' - get ':username' => 'people#show', :as => 'user_profile' + get '/u/:username' => 'people#show', :as => 'user_profile' # Startpage root :to => 'home#show'