Topic: ActionMailers mail method in rails3
i am upgrading to rails3 and refactoring my Mailer class in this moment.
In it, i have 2 methods like this one:
def confirmation(user, pass) @user = user @pass = pass mail(:to => user.email) end
and a default hash with:
default :from => "email@example.com", :subject => 'registration'
and a template called confirmation.text.erb containing the body.
But when testing the mail, i get an error with the message:
ArgumentError: wrong number of arguments (0 for 1)
Anyone knows what i am doing wrong ?
 line 10 is the line where i call the mail-method
Last edited by maltin (2011-01-03 10:29:50)