Routing error - uninitialized constant

后端 未结 5 1735
-上瘾入骨i
-上瘾入骨i 2020-12-28 13:28

I could not fix this in Rails 3.2.12, maybe I am missing something.

config/routes.rb

get \"home/index\"
root :to => \"home#index\         


        
5条回答
  •  被撕碎了的回忆
    2020-12-28 14:05

    Rails requires the file name to match the class name. Therefore you should rename app/controllers/authentication_controller.rb to app/controllers/authentications_controller.rb.

提交回复
热议问题