This project is archived and is in readonly mode.
undefined method 'remove_attributes_protected_from_mass_assignment'
Reported by Adrian | July 27th, 2010 @ 06:00 PM
Please ignore this ticket
It was an issue i had with state_machine and was quickly resolved by the gem owner.
When creating a new object im getting this error in a controller.
Ive tested it with no filters and no attributes being assigned to it.
Comments and changes to this ticket
-
Adrian July 27th, 2010 @ 06:19 PM
I figured it out. I was using state machine in the model and that tries to access the 'remove_attributes_protected_from_mass_assignment' method.
I am having the same problem with the factory girl gem. Do you have any recommendation on steps to take to make these work again?
-
Trevor Rosen July 28th, 2010 @ 04:19 PM
Having the same issue -- model-based transitions breaking as well as original assignments in FactoryGirl-based fixtures.
-
Keeran July 28th, 2010 @ 08:14 PM
Adrian: please can you post whatever fix / solution you worked out with the gem owner? In the process of upgrading an app from beta3 -> rc1 and have hit the same problem.
Many thanks,
K
-
Keeran July 28th, 2010 @ 08:17 PM
Suspect this is what we need to change in state_machine, just wondering how you went about it:
http://github.com/klacointe/state_machine/commit/da21e98dad6199050c...
-
Keeran July 28th, 2010 @ 08:33 PM
Sorry for spamming Rails tickets about this, but fix is here:
http://github.com/pluginaweek/state_machine/commit/1e5e04bb67be0b50...
-
Adrian July 28th, 2010 @ 09:06 PM
Hey there.
Sorry, did not cache your comment earlier. The problem with state machine was cascading in to factory girl so if you update to use the state_machine's master branch from github in your gemfile it should work fine.
Thanks for linking to the fix though.
-
Rohit Arondekar July 29th, 2010 @ 02:45 AM
- State changed from new to invalid
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>