Install ruby-protected-attributes by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-protected-attributes
Description:
Protect attributes from mass assignment in Active Record models
This plugin adds the class methods `attr_accessible` and `attr_protected` to your models to be able to declare white or black lists of attributes, avoiding attacks by parameter injection against Rails applications.
Homepage: https://github.com/rails/protected_attributes
Version: 1.1.3-2
Section: universe/ruby