Recognize routes in rails console Session

前端 未结 5 2103
无人共我
无人共我 2020-12-12 10:25

Say I have a router helper that I want more info on, like blogs_path, how do I find out the map statements behind that in console.

I tried generate and recognize and

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 10:45

    running the routes command from your project directory will display your routing:

    rake routes
    

    is this what you had in mind?

提交回复
热议问题