0

我无法将根 url 路由到已登录用户的个人资料页面。

这是我的配置文件-

 get "profiles/show"

resources :players

devise_for :users

devise_scope :user do 
 get 'register', to: "devise/registrations#new", as: :register
 get 'login',    to: "devise/sessions#new", as: :login
 get 'logout',   to: "devise/sessions#destroy", as: :logout
end

resources :logistics

resources :notes

root :to => 'notes#index'

get '/:id', to: 'profiles#show'

我希望“root to”显示“profiles#show”视图。就像 get '/:id' 路由就在它下面一样。

我已经尝试并研究了我认为无济于事的方法。感谢您对此的帮助。

4

1 回答 1

0

嘿尝试类似的东西

match "/:id" => "profiles#show"
于 2012-10-06T20:46:33.690 回答