I just upgraded to Rails 4, and rails_admin now gives me this when I try to edit something, and then click save:
Can't mass-assign protected attributes for Opportunity: created_by_id, contact_information, sent_expiring_email
From what I read here , it looks like rails_admin should not allow editable objects not accessible by attr, but that seems to be the case.
I understand that switching to strong parameters will fix this. This is true? Is there any other way to fix this? Or, if not, someone can give a simple explanation of how to move on to strong parameters. I tried a regular Google search and read on it, but I really donβt understand what is happening and what I need to change in my code in order to make a move.
ruby-on-rails-4 mass-assignment strong-parameters rails-admin
user3579987
source share