Ruby on Rails 教程中的tag模板的报错

 

按照新手指南上面的写了blog, 在运行的时候就出现Can't mass-assign protected attributes: tags_attributes;也不知道哪里出了问题,最后在谷歌里面找到答案,解决知道就是在modle/post.rb 添加attr_accessible :tag_attributes.问题就解决了。

posted on 2013-03-05 11:09  yehkevin  阅读(99)  评论(0编辑  收藏  举报

导航