Ruby on rails Spree Rails应用程序启动错误';“实例方法”;开放式;已在对象';

Ruby on rails Spree Rails应用程序启动错误';“实例方法”;开放式;已在对象';,ruby-on-rails,ruby,deployment,spree,Ruby On Rails,Ruby,Deployment,Spree,尝试在生产环境中运行my Rails应用程序而不是在开发环境中运行my Rails应用程序时发生此错误: 实例方法“open”已在对象中定义,请改用泛型帮助程序或设置StateMachines::Machine.ignore\u method\u conflicts=true 我对Rails比较陌生,需要一些帮助来解决这个问题。什么可能导致错误?我应该看哪里,或者我应该尝试什么步骤来缩小发生的事情 我最近从Ruby 2.2.2升级到了2.2.4,但这个错误并没有立即出现。最近对应用程序的其他更改

尝试在生产环境中运行my Rails应用程序而不是在开发环境中运行my Rails应用程序时发生此错误:

实例方法“open”已在对象中定义,请改用泛型帮助程序或设置StateMachines::Machine.ignore\u method\u conflicts=true

我对Rails比较陌生,需要一些帮助来解决这个问题。什么可能导致错误?我应该看哪里,或者我应该尝试什么步骤来缩小发生的事情

我最近从Ruby 2.2.2升级到了2.2.4,但这个错误并没有立即出现。最近对应用程序的其他更改仅限于js、css和ERB视图文件

我的档案:

source 'https://rubygems.org'

ruby '2.2.4'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.3' #TODO settle on a non-edge Rails once enum prefixing is released
#gem 'rails', github: 'rails/rails'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'

  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'
end

gem 'rails_12factor', group: :production

# group :development do
#   gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git' #speed up development
#   gem 'rb-inotify', '>= 0.8.8'
# end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
#gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'spree', branch: '3-0-stable'
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 'pg'
gem 'spree_i18n', git: 'git://github.com/spree/spree_i18n.git', branch: '3-0-stable'

gem 'spree_yadav_jewelry', :path => 'extensions/spree_yadav_jewelry'
gem 'spree_yadav_diamonds', :path => 'extensions/spree_yadav_diamonds'

gem 'has_scope'
gem 'aws-sdk-v1'
gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: '3-0-stable'
gem 'spree_contact_us', github: 'spree-contrib/spree_contact_us', branch: '3-0-stable'
gem 'font-awesome-sass'
源代码'https://rubygems.org'
ruby'2.2.4'
#捆绑边缘Rails:gem'Rails',github'Rails/Rails'
gem'rails'、'4.2.3'#一旦释放枚举前缀,就要在非边缘rails上解决问题
#gem'rails',github'rails/rails'
#使用sqlite3作为活动记录的数据库
#gem'sqlite3'
#将SCS用于样式表
gem'sass-rails',“~>5.0”
#使用Uglifier作为JavaScript资产的压缩器
gem'uglifier','>=1.3.0'
#将CoffeeScript用于.coffee资产和视图
gem“咖啡轨”,“~>4.1.0”
#看https://github.com/sstephenson/execjs#readme 获取更多受支持的运行时
#宝石“therubyracer”,平台::ruby
#使用jquery作为JavaScript库
gem'jqueryrails'
#Turbolinks使web应用程序中的以下链接更快。阅读更多:https://github.com/rails/turbolinks
gem“涡轮链接”
#轻松构建JSON API。阅读更多:https://github.com/rails/jbuilder
gem'jbuilder',“~>2.0”
#bundle exec rake doc:rails在doc/API下生成API。
gem'sdoc','~>0.4.0',组::doc
#使用ActiveModel具有\u安全\u密码
#gem'bcrypt',“~>3.1.7”
#使用Unicorn作为应用程序服务器
宝石“独角兽”
#使用Capistrano进行部署
#gem“capistrano rails”,集团::开发
小组:开发,:测试
#在代码中的任意位置调用“byebug”以停止执行并获得调试器控制台
宝石“比伯”
#在异常页面上或通过在视图中使用访问IRB控制台
gem“web控制台”,“~>2.0”
结束
gem“rails\u 12factor”,集团::生产
#小组:发展怎么办
#gem'railsdevboost',:git=>'git://github.com/thedarkone/rails-dev-boost.git"加快发展"
#gem'rb inotify','>=0.8.8'
#结束
#Windows不包括zoneinfo文件,因此捆绑tzinfo数据
#gem'tzinfo data',平台:[:mingw,:mswin,:x64_mingw,:jruby]
宝石“狂欢”,分支:“3-0-稳定”
gem“spree_gateway”,github:“spree/spree_gateway”,分支:“3-0-stable”
gem'spree_auth_designe',github:'spree/spree_auth_designe',分支:'3-0-stable'
宝石“pg”
宝石“狂欢”,吉特:'git://github.com/spree/spree_i18n.git'分支:“3-0-稳定”
gem'spree_yadav_珠宝',:path=>'extensions/spree_yadav_珠宝'
gem'spree_yadav_diamonds',:path=>'extensions/spree_yadav_diamonds'
gem“有范围”
gem“aws-sdk-v1”
gem'spree_static_content',github:'spree contrib/spree_static_content',分支:'3-0-stable'
gem“spree_contact_us”,github:“spree contrib/spree_contact_us”,分支机构:“3-0-stable”
gem'font-awesome-sass'

这只是一条由状态机引起的警告消息


这将在Spree 3.0.8中修复。很抱歉给您带来不便

错误屏幕是否指向文件中的特定代码行?如果是这样的话,你能在文件中发布代码并告诉我们它指向哪一行吗?对不起,这个错误-本地和Heroku上都没有给出行号或其他跟踪。有没有办法让我得到这些信息?