moved public route

This commit is contained in:
danielvincent 2010-10-06 18:13:53 -07:00
parent 6b74053e06
commit 66b356b5fe
2 changed files with 2 additions and 2 deletions

View file

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

View file

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