我有一个Spree应用程序,里面显然有购物车表格。
Here是Spree(3.0)Github页面上的_cart.html.erb
的代码。(第9行和第10行)
我想从购物车中删除变体选项,但是当我删除单选按钮标签或标签标签并将其提交后,将我重定向到错误页面:“您要查找的页面不存在。”
使用单选按钮和标签标记,效果很好。
我的问题是:如何摆脱此页面的变体?
服务器日志:
Started POST "/orders/populate" for 127.0.0.1 at 2019-03-15 12:08:20 +0100
Processing by Spree::OrdersController#populate as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"PgUid1oGjoCYLbu9XR4T40C1ZRTTDTHzjYHq15TDvZNjyBKwKPiYplUF8+AHZyvsZ4PQnEDsGQEW4vXwO1gMsA==", "quantity"=>"1", "button"=>""}
/home/mycomp/RubymineProjects/store/vendor/bundle/gems/versioncake-2.3.1/lib/versioncake/strategies/extraction_strategy.rb:8: warning: constant ::Fixnum is deprecated
Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT 1 [["key", "spree/frontend_configuration/locale"]]
Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" IS NULL LIMIT 1
Spree::Store Load (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1
Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = ? ORDER BY "spree_stores"."id" ASC LIMIT 1 [["default", "t"]]
Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = ? AND "spree_orders"."guest_token" = ? AND "spree_orders"."store_id" = ? AND "spree_orders"."user_id" IS NULL LIMIT 1 [["currency", "USD"], ["guest_token", "JlrpVMbX2Xll07oQ3eNp7Q"], ["store_id", 1]]
Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (4) ORDER BY spree_adjustments.created_at ASC
Rendered public/404.html (2.3ms)
Completed 404 Not Found in 175ms (Views: 57.9ms | ActiveRecord: 3.0ms)