3

尝试这样做,但作业在运行时失败

Exception: NameError
Error: uninitialized constant ActiveRecord

我正在使用 Rails 4.2,并从 application.rb 的依赖项中删除了活动记录,如下所示:

#config/application.rb
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_job/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"
4

0 回答 0