Ruby on rails 导航到localhost:3000时,导航到localhost:3000/workers
导航到Ruby on rails 导航到localhost:3000时,导航到localhost:3000/workers,ruby-on-rails,navigation,Ruby On Rails,Navigation,导航到localhost:3000时,我想导航到:localhost:3000/workers 因此,我将public/index.html更改为public/index.html.bak,并在routes.rb中定义了以下内容: devise_for :users do get '/users/sign_out' => 'devise/sessions#destroy' end resources :tasksadmins resources :workers root to: "
localhost:3000
时,我想导航到:localhost:3000/workers
因此,我将public/index.html
更改为public/index.html.bak
,并在routes.rb
中定义了以下内容:
devise_for :users do get '/users/sign_out' => 'devise/sessions#destroy' end
resources :tasksadmins
resources :workers
root to: "workers#index"
但是,它不起作用。页面localhost:3000
显示欢迎登机页面
我怎样才能修好它?感谢您的帮助。似乎没问题。您重新启动服务器了吗?似乎没问题。你重启服务器了吗