What are Strong Parameters?

Technology CommunityCategory: Ruby on RailsWhat are Strong Parameters?
VietMX Staff asked 3 years ago

With strong parameters, Action Controller parameters are forbidden to be used in Active Model mass assignments until they have been permitted. This means that you’ll have to make a conscious decision about which attributes to permit for mass update. This is a better security practice to help prevent accidentally allowing users to update sensitive model attributes.