我在創建鏈接時遇到了一個小問題。Rails link_to params .id而不是/編號
我的觀點:
<%= link_to 'slet', blog_comments_path(c.blog, c), :confirm => 'Er du sikker?', :method => :delete %>
輸出:
http://localhost:3000/blogs/5/comments.6
,它應該是:
http://localhost:3000/blogs/5/comments/6
這種現象並不令人驚訝。它沒有記錄在某個地方嗎? – 2017-09-14 04:37:32