当我在欢迎页面上显示所有帖子时,我遇到了一个小错误:index.HTML.erb
. 它有效,但我的问题是我在每篇文章的底部都有这段代码:
[#<Post id: 1, title: " Is The Death Of JavaScript Upon Us, Or Is A Univer...",
image_url: "javascript.jpg", video_embed: "", category: "Article",
content: "<p><strong>Editor’s note:</strong> <em>Péter ...",
teasable_string: "", user_id: nil, created_at: "2013-06-19 14:09:13",
updated_at: "2013-06-19 14:15:17", day: "19", month: "Jun 2013">]
我一直在寻找解决方案,但还没有找到任何东西。我试过查看 ActiveRecord,但没有找到任何东西。