Rails dot instead of slash in URL

前端 未结 1 405
醉话见心
醉话见心 2020-12-06 08:48

In my routes.rb I have:

get \"projects/:category_id\" => \"projects#index\"

When I write projects_path(1) the generated URL

相关标签:
1条回答
  • 2020-12-06 09:46

    projects_path is the index, which only takes one argument: the format. You want project_path(1)

    0 讨论(0)
提交回复
热议问题