【发布时间】:2016-11-06 11:46:31
【问题描述】:
我刚刚创建了一个新的 rails 应用程序(在 CL 上,使用 rails new),我使用的是 4.2.6,但似乎在我可以对应用程序执行任何操作之前,我遇到了错误。
首先...
/config/environments/development.rb:53:in `block in <top (required)>':
uninitialized constant ActiveSupport::EventedFileUpdateChecker (NameError)
然后,一旦我将其注释掉...
/config/initializers/new_framework_defaults.rb:15:in `<top (required)>':
undefined method `to_time_preserves_timezone=' for ActiveSupport:Module (NoMethodError)
一旦被注释掉...
/config/initializers/new_framework_defaults.rb:21:in `<top (required)>':
undefined method `halt_callback_chains_on_return_false=' for ActiveSupport:Module (NoMethodError)
最后...
.gem/ruby/2.2.3/gems/actionmailer-4.2.5/lib/action_mailer/base.rb:569:in `method_missing':
undefined method `perform_caching=' for ActionMailer::Base:Class (NoMethodError)
我在 Google 上看到的所有内容都表明这些都是 Rails 5 相关的东西。我不确定如何绕过它们,或者如何创建仍然特定于 4.2.6 的应用。
【问题讨论】:
-
您的意思是您创建了一个使用 rails 5 的应用并试图将其降级到 4?
-
你能在github上分享你的项目吗?
-
我建议试试这个andreapavoni.com/blog/2013/8/… 链接并从头开始。
-
http://stackoverflow.com/questions/379141/specifying-rails-version-to-use-when-creating-a-new-application Try > rails _ 4.2.6 _ new myapp
标签: ruby-on-rails