Ruby on rails 3.2 Rails 3.2.11应用程序中的未初始化常量错误
这是在Rails 2.3.11中实现的。我将应用升级到Ruby 2.0.0和Rails 3.2.11。除了寄支票外,一切都正常 在check\u mailings\u controller.rb中:Ruby on rails 3.2 Rails 3.2.11应用程序中的未初始化常量错误,ruby-on-rails-3.2,Ruby On Rails 3.2,这是在Rails 2.3.11中实现的。我将应用升级到Ruby 2.0.0和Rails 3.2.11。除了寄支票外,一切都正常 在check\u mailings\u controller.rb中: class CheckMailingsController < ApplicationController ... def send_mail CheckEmail.send_check_mail ... end end 我收到的错误消息是: uninitiali
class CheckMailingsController < ApplicationController
...
def send_mail
CheckEmail.send_check_mail
...
end
end
我收到的错误消息是:
uninitialized constant CheckMailingsController::CheckEmail
应用程序启动时不应该初始化类吗
谢谢你的帮助。只需添加
require "check_email"
到checkMailingController.rb
文件的顶部
require "check_email"