我的 Rails 应用程序坏了,几分钟前它运行良好。现在它给了我路由错误。
我的routes.rb
文件如下所示:
get "public_pages/home", :as => "home"
get "log_in" => "sessions#new", :as => "log_in"
get "log_out" => "sessions#destroy", :as => "log_out"
get "sign_up" => "users#new", :as => "sign_up"
match "session" => "sessions#create", :via =>:post
root :to => "public_pages#home"
resources :users, :except => [:index,
:new,
:destroy]
resources :sessions
resources :questions
我得到的错误是:No route matches {:action=>"show", :controller=>"users"}
当我去localhost:3000/sign_up
提前致谢。