Why is my development server not loading? default_controller_and_action': missing :action (ArgumentError)

前端 未结 6 2071
我在风中等你
我在风中等你 2020-12-09 08:17

I\'m a Ruby nuby (and new to Stack Overflow) working on the Rails Tutorial by Michael Hartl and all of a sudden my development server won\'t load and keeps exiting. Console

6条回答
  •  渐次进展
    2020-12-09 08:43

    change your default root in the routes.rb file.

    get "static_pages#home"  TO root to: 'static_pages#home'
    

    I've gone through the same issue, and the above change worked for me.

提交回复
热议问题