找不到表'spree_pages'

时间:2015-08-21 08:54:53

标签: ruby-on-rails ruby spree

我正在努力让spree-static-content启动并运行。我目前正在使用:

  1. gem 'rails', '4.2.3'
  2. gem 'spree', '3.0.4'
  3. gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
  4. gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
  5. gem 'spree_editor', github: 'spree-contrib/spree_editor', branch: '3-0-stable'
  6. gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: '3-0-stable'
  7. 然而,当我开始运行我的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?
    

1 个答案:

答案 0 :(得分:1)

宝石README

$(document).ready(function () {
     $(".test").click(function () {
           alert($(this).attr('value'));
     });
 });