Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

ActiveModel::ForbiddenAttributesError on address saving #68

Closed
coorasse opened this issue Mar 18, 2014 · 1 comment
Closed

ActiveModel::ForbiddenAttributesError on address saving #68

coorasse opened this issue Mar 18, 2014 · 1 comment

Comments

@coorasse
Copy link

When I save a new address it results in this error ActiveModel::ForbiddenAttributesError

stack:

ActiveModel::ForbiddenAttributesError - ActiveModel::ForbiddenAttributesError: activemodel (4.0.4) lib/active_model/forbidden_attributes_protection.rb:21:in 'sanitize_for_mass_assignment' activerecord (4.0.4) lib/active_record/attribute_assignment.rb:21:in 'assign_attributes' activerecord (4.0.4) lib/active_record/core.rb:468:in 'init_attributes' activerecord (4.0.4) lib/active_record/core.rb:185:in 'initialize' activerecord (4.0.4) lib/active_record/inheritance.rb:30:in 'new' activerecord (4.0.4) lib/active_record/reflection.rb:189:in 'build_association' activerecord (4.0.4) lib/active_record/associations/association.rb:255:in 'build_record' activerecord (4.0.4) lib/active_record/associations/collection_association.rb:114:in 'build' activerecord (4.0.4) lib/active_record/associations/collection_proxy.rb:229:in 'build' () home/coorasse/.rvm/gems/ruby-2.0.0-p353/bundler/gems/spree_address_book-8551503c185c/app/controllers/spree/addresses_controller.rb:11:in 'create'

@coorasse
Copy link
Author

Same error during updating

coorasse added a commit to coorasse/spree_address_book that referenced this issue Mar 18, 2014
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

2 participants