2014-01-31 2 views
2

Я пытаюсь использовать Twitter's ActiveRecord Reputation System gem с Rails 4 примененияActiveRecord Репутация Система самоцвет с Rails 4

Ive добавил gem 'activerecord-reputation-system' к моему Gemfile и запустить bundle install

Когда я бегу rails generate reputation_system я получаю следующее сообщение об ошибке:

/Users/Dee/.rvm/gems/ruby-2.0.0-p247/gems/activemodel-4.0.2/lib/active_model/deprecated_mass_assignment_security.rb:14:in `attr_accessible': `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. (RuntimeError) 

Ive попробовал добавить gem 'protected_attributes' к моему Gemfile, но это не исправить.

Любые идеи?

ответ

6

Использование

gem 'activerecord-reputation-system', github: 'NARKOZ/activerecord-reputation-system', branch: 'rails4' 

в моей Gemfile решена Эта проблема

0

Официальный activerecord-reputation-system камень теперь поддерживает Rails 4 (начиная с версии 3.0).

Смежные вопросы