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

ForbiddenAttributeError when using :extra_parameters fix #266

Merged
merged 1 commit into from
Dec 13, 2015

Conversation

lonski
Copy link
Contributor

@lonski lonski commented Dec 11, 2015

Hello!

Recently I encountered a problem when trying to create saved_querries per user. I fallowed the instructions from here: https://github.com/leikind/wice_grid/blob/rails3/SAVED_QUERIES_HOWTO.md

But after all I saw:

ActiveModel::ForbiddenAttributesError (ActiveModel::ForbiddenAttributesError):
  activemodel (4.2.3) lib/active_model/forbidden_attributes_protection.rb:21:in `sanitize_for_mass_assignment'

I tracked that it complained because of mass attribute assigment using 'raw' parameters. I prepared a simple fix. Comments are welcomed.

Regards,
Michał

leikind added a commit that referenced this pull request Dec 13, 2015
ForbiddenAttributeError when using :extra_parameters fix
@leikind leikind merged commit 0cac87c into leikind:rails3 Dec 13, 2015
@leikind
Copy link
Owner

leikind commented Dec 13, 2015

Thanks

@leikind
Copy link
Owner

leikind commented Dec 13, 2015

This functionality has not been worked on for quite some time, and I wanted to throw i away many times

@lonski
Copy link
Contributor Author

lonski commented Dec 19, 2015

Now it seems to work well. I did not encounter any more issues yet.

Regards

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

Successfully merging this pull request may close these issues.

None yet

2 participants