0

我正在尝试按照 Spree 入门 - http://spreecommerce.com/documentation/getting_started.html中提到的步骤在本地计算机上安装和运行 Spree

但是,当我启动服务器时,出现以下错误(主页)

ProductsController#index 中的 ActiveRecord::StatementInvalid

Mysql2::Error: 'where 子句'中的未知列'products.individual_sale':SELECT products.* FROM productsWHERE (products.deleted_at 为 NULL) AND (products.individual_sale = 1) AND (products.available_on <= '2011-04- 01 14:50:07') 有人可以帮我解决这个问题吗?

安装了样本数据,空店工作正常。

导轨 3.0.5 红宝石 1.8.7

4

1 回答 1

4

运行以下命令:

rails g spree_product_assembly:安装

耙分贝:迁移

http://groups.google.com/group/spree-user/browse_thread/thread/d8e70e68144da664/23df08505df7b3d2?lnk=gst&q=products+individual_sale#23df08505df7b3d2

于 2011-04-08T17:53:35.883 回答