I'm trying to setup a simple mailer in rails 3.1.
I have the following code in my mailer...
class Notify < ActionMailer::Base
default :from => "signup@raceton.com"
def send
@email = email
@ip = ip
mail(:to => "test@test.com", :subject => "#{email} just signed up")
end
end
Then in my controller I have...
Notify.send(params[:email], ip).deliver
For some reason that I can't work out when that line is called in my controller I get the following error...
undefined method `*string I passed in*' for Notify:Class
Any ideas what I'm doing wrong here?