ActiveModel::ForbiddenAttributesError on address saving #68

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

Comments

Projects
None yet
2 participants

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'

Same error during updating

@coorasse coorasse added a commit to coorasse/spree_address_book that referenced this issue Mar 18, 2014

@coorasse coorasse fixed #67, #68 and #69 89a7f03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment