我的代码:
class MailTool < ActionMailer::Base
def welcome_email(user, company)
@user = user
delivery_options = { :user_name => company.smtp_user,
:password => company.smtp_password,
:address => company.smtp_host }
mail(:to=> @user.email,
:subject=> "Please see the Terms and Conditions attached",
:delivery_method_options=> delivery_options)
end
end
当我调用welcome_email的时候出现参数不匹配,是版本问题??搜索了好多,都不能解决
跪求各位大神帮忙,小弟先写过了