升级导轨/可重新装载
我尝试升级我的 Rails 以便将旧的 RoR 应用程序部署到 Heroku 中, 不幸的是我遇到了一些错误,而且我不知道如何解决这个问题。我的模型中的 include Reloadable
似乎不再起作用:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant Artist::Reloadable (NameError)
from /disk1/home/slugs/123146_6bfd10b_0628/mnt/app/models/artist.rb:2
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in `require_or_load'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:224:in `depend_on'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:136:in `require_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:414:in `load_application_classes'
... 23 levels...
我之前的安装使用的是 RAILS_GEM_VERSION = '1.1.2'。
I have tried to upgrade my rails in order to deploy a old RoR app into Heroku,
Unfortunately I'm getting some errors and I have no clue how to fix this. It seems that include Reloadable
from my model isn't working anymore:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant Artist::Reloadable (NameError)
from /disk1/home/slugs/123146_6bfd10b_0628/mnt/app/models/artist.rb:2
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in `require_or_load'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:224:in `depend_on'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:136:in `require_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:414:in `load_application_classes'
... 23 levels...
My previous install was using RAILS_GEM_VERSION = '1.1.2'.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过删除
include Reloadable
Have you tried deleting the
include Reloadable
Reloaded 已被弃用很长时间了。看看这个:http://weblog.rubyonrails.org/2006/8/ 11/reloading-revamped
您正在寻找的功能现在可能会自动内置到 Rails 中。
Reloaded has been deprecated for a long time. Check this out: http://weblog.rubyonrails.org/2006/8/11/reloading-revamped
The functionality you're looking for may now be automatically built into rails.