Routing error - uninitialized constant

后端 未结 5 1757
-上瘾入骨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 13:55

    While it doesn't answer your specific question, I received the failure with the following in my routes.rb

    resources :republishes  do
        post '/attempt_all', :to => 'republishes/#attempt_all' . . .
    

    which I changed to

    resources :republishes  do
        post '/attempt_all', :to => 'republishes#attempt_all' . . .
    

    Removing the slash fixed my issue.

提交回复
热议问题