我正在尝试将refinerycms gem添加到我现有的rails应用中。必须存在一些捆绑器没有捕获的依赖性问题,因为在我添加之后:
gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch: 'master'
到我的rails应用程序,然后尝试执行捆绑exec rails s
我得到了这个堆栈跟踪:
/Users/User/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/stack.rb:112:in `push': can't modify frozen Array (RuntimeError)
from /Users/User/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/stack.rb:112:in `use'
from /Users/User/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rails_admin-0.6.2/lib/rails_admin/engine.rb:28:in `block in <class:Engine>'
from /Users/User/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.4/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/User/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.4/lib/rails/initializable.rb:30:in `run'
from /Users/User/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.4/lib/rails/initializable.rb:55:in `block in run_initializers'
有关找出不兼容性的最佳方法的任何想法?这适用于ruby 2.1.1p76和Rails 4.0.4。