在此页面的开头附近...
http://guides.rubyonrails.org/routing.html
...有一个涉及@patient 的示例(第 1.2 节)。
我想知道如何确定以下线指向的位置:
<%= link_to 'Patient Record', patient_path(@patient) %>
rake 路由生成的列表与此相关吗?
我如何知道使用了哪个 http 动词?
编辑
我想补充一点,将我指向“rake routes”不会为我解释。我已经多次检查我的路线列表。
我想知道,在上面 URL 的示例中,我如何知道 link_to 线指向的位置。看起来路线列表很重要,但它与 patient_path 线有什么关系?我错过了什么?