【发布时间】:2023-04-11 01:38:01
【问题描述】:
我必须从 Sendgrid V2 更新到 V3。我正在使用 Sendgrid-ruby gem 5.3。
我收到了这个错误
NameError (uninitialized constant PasswordController::Email):
app/controllers/password_controller.rb:54:in `send_email'
May 06 08:57:01 burro-staging app/web.1: ArgumentError (wrong number of arguments (given 1, expected 0)):
这是导致问题的行(下面的第 2 行)。
mail = SendGrid::Mail.new
mail.from = Email.new(email: 'no-reply@getburro.com') <-----
【问题讨论】:
标签: ruby-on-rails sendgrid sendgrid-api-v3