首页新闻找找看学习计划

求助: ActionMailer::Base mail 出现 wrong number of arguments (1 for 0)

0
悬赏园豆:50 [已关闭问题] 关闭于 2013-08-06 08:56

我的代码:

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的时候出现参数不匹配,是版本问题??搜索了好多,都不能解决
跪求各位大神帮忙,小弟先写过了
LaoQuans的主页 LaoQuans | 菜鸟二级 | 园豆:206
提问于:2013-07-30 17:38
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册