阅读背景:

如何在Rails视图中呈现所有注释?

来源:互联网 

I am new to rails so go easy. I have created a blog. I have successfully implemented comments and attached them to each post. Now...I would like to display, in the sidebar, a list of the most recent comments from across all posts. I think there are two things involved here, an update to the comment_controller.rb, and then the call from the actual page. Here is the comments controller code. I am new to rails so go easy. I have created a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: