我正在尝试实现this,以告知正在发送和打开哪些电子邮件。但是当我创建一个新用户并发送电子邮件时,出现以下错误:
composer dump-autoload
邮件方法:
ActionView::Template::Error: undefined method 'root_path' for #<#<Class:0x007f8d6fe27170>:0x007f8d6fe25168>
def track(name, email)
SentEmail.create!(:name => name, :email => email, :sent => DateTime.now)
url = "#{font_path(:only_path => false)}email/track/#{Base64.encode64("name=#{name}&email=#{email}")}.png"
raw("")
end
知道我可能在做什么错吗?