0

Railscast 154之后,我建立了与评论和一些父资源的多态关联。例如

http://localhost:3000/articles/1/comments/1  
http://localhost:3000/pictures/1/comments/1  

这很好用,但我还需要对已经嵌套的资源进行评论,例如

http://localhost:3000/stories/1/chapters/1/comments/1  
http://localhost:3000/forums/1/topics/1/comments/1  

执行此操作的最佳方法是什么?

4

1 回答 1

0

这个Railscast应该可以帮助你。

于 2011-01-15T14:05:12.893 回答