Ruby on rails “No route matches”

后端 未结 5 1871
北荒
北荒 2021-02-20 09:06

I am new to Rails and am just implementing some basic applications. Just starting on my second app and have run into what is a basic problem, but Google is yielding me nothing.

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-20 09:39

    For Rails > 3 you should use the new routing syntax:

    resources :items, :cart
    
    resource :user do
      # Route GET /user/admin_login
      get 'admin_login', :on => :collection
    end
    

    See Rails guides for more information about routing.

提交回复
热议问题