#2 楼 @theblock24block 🙏谢谢
#1 楼 @flowerwrong
<%= url_for(@workshop) %> # calls @workshop.to_param which by default returns the id # => /workshops/5
我想应该是这个吧,[comment.article, comment] 连起来表示/articles/:article_id/comments/:id