When I order my resources like below, /websitename works but /username doesn't.
resources :websites, :path => '', :only => [:create, :show] do
resources :pages, :only => [:create, :show, :edit]
end
resources :users, :path => '', :only => [:create, :show, :index]
When I reverse the order like below, /username works but /websitename doesn't.
resources :users, :path => '', :only => [:create, :show, :index]
resources :websites, :path => '', :only => [:create, :show] do
resources :pages, :only => [:create, :show, :edit]
end
It's like one is cancelling the other out or something. Is there some way around this? Some way to encapsulate them or something? I've no idea what I'm doing...