Skip to content

Instantly share code, notes, and snippets.

@tacettin
Created December 26, 2013 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tacettin/8133823 to your computer and use it in GitHub Desktop.
Save tacettin/8133823 to your computer and use it in GitHub Desktop.
protected_attributes
It is because in rails-4, ActiveModel::MassAssignmentSecurity has been taken out of ActiveModel. But devise uses attr_accessible, hence to use that, just add the following gem in ur Gemfile and try to load once again.
gem 'protected_attributes'
EDIT:
Now devise is supporting for rails-4. Include this in your Gemfile.
gem 'devise', '3.0.0.rc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment