Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Devise not working with Rails 4.0rc1

Is there a way to get Devise to work with Rails 4.0rc1? I get the following error when trying to start the rails server or even to generate the Devise views:

/Users/scott/.rvm/gems/ruby-2.0.0-p195@rails/gems/activemodel-4.0.0.rc1/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)
like image 634
at. Avatar asked Oct 05 '22 02:10

at.


1 Answers

You can use a new Devise version that supports Rails 4.

gem 'devise', '~> 3.0.0.rc'
like image 121
Ilya Khokhryakov Avatar answered Oct 26 '22 16:10

Ilya Khokhryakov