Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Can't mass-assign protected attributes: score, trigram, owner_type #35

Open
chrilleferna opened this issue Jan 24, 2014 · 0 comments
Open

Comments

@chrilleferna
Copy link

When creating a new or editing an existing object whose class model has a fuzzy_searchable attribute I get a mass assignment violation error. This happens when I do an "update_attributes" with a hash, even if the hash does not contain any of the attributes (score, trigram, owner_type). If I change the "update_attributes", the error appears at save. I use Rails 3.2.12 with Ruby 1.9.3

Oh, andI tried adding attr_accessible for the three attributes after the call to fuzzily_searchable in my model, but it didn't change anything

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant