Hi guys, I''m running a strange problem sending emails. Basicly
I''m
getting this exception:
ArgumentError (wrong number of arguments (1 for 0)):
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/
base.rb:642:in `initialize''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/
base.rb:642:in `new''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/
base.rb:642:in `create''
/usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_mailer.rb:92:in `perform_delivery_activerecord''
/usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_mailer.rb:91:in `each''
/usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_mailer.rb:91:in `perform_delivery_activerecord''
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.1/lib/action_mailer/
base.rb:508:in `__send__''
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.1/lib/action_mailer/
base.rb:508:in `deliver!''
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.1/lib/action_mailer/
base.rb:383:in `method_missing''
/app/controllers/web_reservations_controller.rb:29:in `test_email''
In my web_reservations_controller I have a simply method calling
TestMailer.deliver_send_email
And my TesMailer is something like:
class TestMailer < ActionMailer::ARMailer
def send_email
@recipients =
"roberto.druetto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
@from = "roberto.druetto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
@subject = "TEST MAIL SUBJECT"
@body = "<br>TEST MAIL MESSAGE"
@content_type = "text/html"
end
end
Do you have any idea?
Thanks! Roberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---