fixed the public route
This commit is contained in:
parent
8bb454f824
commit
131e905322
2 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ class Person
|
|||
end
|
||||
|
||||
def public_url
|
||||
"#{self.url}users/#{self.owner.username}"
|
||||
"#{self.url}public/#{self.owner.username}"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ Diaspora::Application.routes.draw do
|
|||
resources :albums
|
||||
|
||||
# added public route to user
|
||||
match 'users/:username', :to => 'users#public'
|
||||
match 'public/:username', :to => 'users#public'
|
||||
resources :users, :except => [:create, :new, :show]
|
||||
|
||||
match 'aspects/move_friends', :to => 'aspects#move_friends', :as => 'move_friends'
|
||||
|
|
|
|||
Loading…
Reference in a new issue