fixed the public route

This commit is contained in:
ilya 2010-10-06 19:05:43 -07:00
parent 8bb454f824
commit 131e905322
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ class Person
end end
def public_url def public_url
"#{self.url}users/#{self.owner.username}" "#{self.url}public/#{self.owner.username}"
end end

View file

@ -11,7 +11,7 @@ Diaspora::Application.routes.draw do
resources :albums resources :albums
# added public route to user # added public route to user
match 'users/:username', :to => 'users#public' match 'public/:username', :to => 'users#public'
resources :users, :except => [:create, :new, :show] resources :users, :except => [:create, :new, :show]
match 'aspects/move_friends', :to => 'aspects#move_friends', :as => 'move_friends' match 'aspects/move_friends', :to => 'aspects#move_friends', :as => 'move_friends'