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

前端 未结 6 2070
我在风中等你
我在风中等你 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:54

    By default you get this:

    Rails.application.routes.draw do
      get 'static_pages/...'
    
      get 'static_pages/home'
    
      get 'static_pages/help'
    

    JUST ERASE THIS:

      get 'static_pages/...'
    

    AND YOU WILL HAVE THIS IN THE ROUTES.RB FILE

    Rails.application.routes.draw do
    
      get 'static_pages/home'
    
      get 'static_pages/help'
    

提交回复
热议问题