我正在努力让spree-static-content启动并运行。我目前正在使用:
gem 'rails', '4.2.3'
gem 'spree', '3.0.4'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
gem 'spree_editor', github: 'spree-contrib/spree_editor', branch: '3-0-stable'
gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: '3-0-stable'
然而,当我开始运行我的rails服务器时, 我将收到以下错误:
ActiveRecord::StatementInvalid in Spree::StaticContentController#show
Could not find table 'spree_pages'
raise(ActiveRecord::StatementInvalid, \
"Could not find table '#{table_name}'") if structure.empty?
答案 0 :(得分:1)
宝石README:
$(document).ready(function () {
$(".test").click(function () {
alert($(this).attr('value'));
});
});