Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mass assignment error when using activerecord store #44

Open
bradseefeld opened this issue Jul 23, 2012 · 0 comments
Open

Mass assignment error when using activerecord store #44

bradseefeld opened this issue Jul 23, 2012 · 0 comments

Comments

@bradseefeld
Copy link

I believe this was a new default adopted in Rails 3.1 or 3.2. The fix is easy, however.

ActiveModel::MassAssignmentSecurity::Error (Can't mass-assign protected attributes: pgt_iou, pgt_id)

I believe we just need to:

class CasPgtiou < ActiveRecord::Base
  attr_accessible :pgt_iou, :pgt_id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant