2

在安装 spree stable 2.0 版本之后......使用示例 -products 我试图查看 spree 的工作方式,但在结帐时(步骤 2:: url ::- /checkout/delivery).. 它似乎给了我错误喜欢.. ----结帐过程的第二步--(点击保存并继续后)

在 Spree::CheckoutController#update 中的 ActiveRecord::RecordNotFound

对于 ID=6 的 Spree::Order 找不到 ID=45 的 Spree::Shipment ----------堆栈跟踪... activerecord (3.2.13) lib/active_record/nested_attributes.rb: 463:in raise_nested_attributes_record_not_found' activerecord (3.2.13) lib/active_record/nested_attributes.rb:428:inblock in assign_nested_attributes_for_collection_association' activerecord (3.2.13) lib/active_record/nested_attributes.rb:401:in each' activerecord (3.2.13) lib/active_record/nested_attributes.rb:401:inassign_nested_attributes_for_collection_association' activerecord (3.2.13) lib/active_record/nested_attributes.rb:289:in shippings_attributes=' activerecord (3.2.13) lib/active_record/attribute_assignment.rb:94:inblock in assign_attributes' activerecord (3.2.13) lib/active_record/attribute_assignment.rb:93:in each'activerecord (3.2.13) lib/active_record/attribute_assignment.rb:93:inassign_attributes' activerecord (3.2.13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions .rb:313:inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2.13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby -1.9.3-p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'2.13) lib/active_record/attribute_assignment.rb:93:inassign_attributes' activerecord (3.2.13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313 :inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2. 13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3 -p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'2.13) lib/active_record/attribute_assignment.rb:93:inassign_attributes' activerecord (3.2.13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313 :inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2. 13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3 -p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'13) lib/active_record/attribute_assignment.rb:93:inassign_attributes' activerecord (3.2.13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313 :inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2. 13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3 -p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'13) lib/active_record/attribute_assignment.rb:93:inassign_attributes' activerecord (3.2.13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313 :inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2. 13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3 -p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'rb:93:inassign_attributes' activerecord (3.2.13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' activerecord (3.2 .13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2.13) lib/active_record/transactions。 rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3-p362/bundler/gems/spree -562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'rb:93:inassign_attributes' activerecord (3.2.13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' activerecord (3.2 .13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2.13) lib/active_record/transactions。 rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3-p362/bundler/gems/spree -562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract /database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2.13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2 .13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3-p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree /checkout_controller.rb:25:在“更新”中13) lib/active_record/persistence.rb:216:in block in update_attributes' activerecord (3.2.13) lib/active_record/transactions.rb:313:inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract /database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2.13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2 .13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3-p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree /checkout_controller.rb:25:在“更新”中inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2.13 ) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3- p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'inblock in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction' activerecord (3.2.13) lib/active_record/transactions.rb:208:intransaction' activerecord (3.2.13 ) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby-1.9.3- p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'activerecord (3.2.13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby -1.9.3-p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'activerecord (3.2.13) lib/active_record/transactions.rb:311:in with_transaction_returning_status' activerecord (3.2.13) lib/active_record/persistence.rb:215:inupdate_attributes' /home/sanjeev.kumar/.rvm/gems/ruby -1.9.3-p362/bundler/gems/spree-562f390cbacf/frontend/app/controllers/spree/checkout_controller.rb:25:in `update'

4

0 回答 0