Ruby on rails “No route matches”

后端 未结 5 1904
北荒
北荒 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:47

    find “config/routes.rb” file, edit, Locate the following line:

    # See how all your routes lay out with "rake routes"
    

    In this line add the following line, as follows:

    map.connect '',:controller=>"index",:action=>"index"
    

提交回复
热议问题