DomainMailer error in ActionMailer #1418

Closed
ogtfaber opened this Issue May 31, 2011 · 0 comments

1 participant

@ogtfaber

My actionmailer seemed to be broken, and I realized it was working after I renamed my mailer from "DomainMailer" to "DomainNameMailer". The stacktrace when using DomainMailer is as followes, after calling for example "DomainMailer.request(@domain, @current_user)":

ArgumentError: wrong number of arguments (0 for 2)
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/action_view/base.rb:217:in request'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/action_view/base.rb:217:in
initialize'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:87:in new'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:87:in
view_context'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:115:in _render_template'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:109:in
render_to_body'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:102:in render_to_string'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:93:in
render'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/deprecated_api.rb:111:in render'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:735:in
collect_responses_and_parts_order'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:750:in each'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:750:in
each_template'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:745:in each'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:745:in
each_template'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:731:in collect_responses_and_parts_order'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:673:in
mail'
from /Users/onno/Sites/hoppakay/app/mailers/domain_mailer.rb:11:in request'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/base.rb:150:in
send_action'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/base.rb:150:in process_action'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/base.rb:119:in
process'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:41:in process'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/old_api.rb:75:in
process'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:471:in process'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:466:in
initialize'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:450:in new'
from /Users/onno/.rvm/gems/ruby-1.8.7-p334/gems/actionmailer-3.0.7/lib/action_mailer/base.rb:450:in
method_missing'

@ogtfaber ogtfaber closed this May 31, 2011
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@akaspick akaspick allow options to be passed to email address auto generation
Signed-off-by: Michael Koziarski <michael@koziarski.com>

[#1418 state:committed]
bda55f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment