1

当我在基本产品上单击“添加到购物车”时,我得到了这个。在我的 spree_stores 表中,我有一条“Sample Store”记录,因为它是由生成器填充的(?)

Spree::OrdersController#populate 中的 ActiveRecord::RecordInvalid 验证失败:商店不能为空

完整的堆栈跟踪: https ://gist.github.com/anonymous/46b17070a302079102640f70fca219ae

Gemfile.lock https://gist.github.com/jasonfb/024 ​​fc7c9435d30ea362979dad1f42884

4

1 回答 1

2

这已通过手动将 spree_stores 中“Sample Store”记录上的“default”标志设置为 true (1) 来解决

前

变成

后

于 2016-05-15T23:52:55.993 回答