1
導航到localhost:3000
時,我想導航到:localhost:3000/workers
。導航到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
向我展示歡迎機票頁面。
我該如何解決?任何幫助讚賞。
@HelloSantos,謝謝! –