新手问题 [求助] RuntimeError

cnlirxio · July 05, 2013 · Last by cnlirxio replied at July 05, 2013 · 2469 hits

RuntimeError: attr_accessible is extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or add protected_attributes to your Gemfile to use old one.

在看http://guides.ruby-china.org/getting_started.html
在 9.6 节的时候出现了这样的错误。 看不懂求解答。

Unknow user #1 July 05, 2013

看看你的 rails 版本

你看的是 Rails 3.2 你在用的是 Rails 4,最好去看官网上的英文版。

#3 楼 @yesmeck 那我还是换成 3.2 吧 Orz

看见这个帖子http://ruby-china.org/topics/12020 找到解决的办法了。

You need to Sign in before reply, if you don't have an account, please Sign up first.