In your Gemfile, you will notice that the gem 'protected_attributes' been removed. Remove the hash. Run bundle install .
But since protected_attributes is deprecated and might disappear in the future, use strong_parameters as indicated in the above article.
For more information about strong_parameters, see the link.
source share