# DateBox

**URL:** <https://www.ruby-forum.com/t/datebox/95431>\
**Category:** Engines\
**Created:** [June 1, 2006, 1:09am UTC](https://www.ruby-forum.com/t/datebox/95431 "2006-06-01T01:09:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![battreal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@battreal](https://www.ruby-forum.com/u/battreal)\
**Post date:** [June 1, 2006, 1:09am UTC](https://www.ruby-forum.com/t/datebox/95431/1 "2006-06-01T01:09:40Z")

</div>

I have installed DateBox but now ActionMailer can not send emails. I get  
an error that says “wrong number of arguments”. I read somewhere that  
the latest version of Rails Engines interferes with ActionMailer. It  
worked fine before I installed Rails Engines. Does anyone have any  
suugestions?

---

<div class="post-metadata">

**Author:** ![battreal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@battreal](https://www.ruby-forum.com/u/battreal)\
**Post date:** [June 1, 2006, 3:35am UTC](https://www.ruby-forum.com/t/datebox/95431/2 "2006-06-01T03:35:16Z")

</div>

Ted Battreall wrote:

> I have installed DateBox but now ActionMailer can not send emails. I get  
> an error that says “wrong number of arguments”. I read somewhere that  
> the latest version of Rails Engines interferes with ActionMailer. It  
> worked fine before I installed Rails Engines. Does anyone have any  
> suugestions?

Here is the error:  
ArgumentError in PeopleController#sendtest  
wrong number of arguments (1 for 2)

Here is the Trace:

(eval):3:in `initialize_template_class' (eval):3:in`render\_message’  
#{RAILS\_ROOT}/vendor/plugins/engines/lib/engines/action\_mailer\_extensions.rb:57:in  
`create!' #{RAILS_ROOT}/vendor/rails/actionmailer/lib/action_mailer/base.rb:267:in`initialize’  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `new' #{RAILS_ROOT}/vendor/rails/actionmailer/lib/action_mailer/base.rb:227:in`method\_missing’  
#{RAILS\_ROOT}/app/controllers/people\_controller.rb:8:in `sendtest’

---

<div class="post-metadata">

**Author:** ![battreal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@battreal](https://www.ruby-forum.com/u/battreal)\
**Post date:** [June 1, 2006, 5:32am UTC](https://www.ruby-forum.com/t/datebox/95431/3 "2006-06-01T05:32:57Z")

</div>

Ted Battreall wrote:

> Ted Battreall wrote:
> 
> > I have installed DateBox but now ActionMailer can not send emails. I get  
> > an error that says “wrong number of arguments”. I read somewhere that  
> > the latest version of Rails Engines interferes with ActionMailer. It  
> > worked fine before I installed Rails Engines. Does anyone have any  
> > suugestions?
> 
> Here is the error:  
> ArgumentError in PeopleController#sendtest  
> wrong number of arguments (1 for 2)
> 
> Here is the Trace:
> 
> (eval):3:in `initialize_template_class' (eval):3:in`render\_message’  
> #{RAILS\_ROOT}/vendor/plugins/engines/lib/engines/action\_mailer\_extensions.rb:57:in  
> `create!' #{RAILS_ROOT}/vendor/rails/actionmailer/lib/action_mailer/base.rb:267:in`initialize’  
> c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `new' #{RAILS_ROOT}/vendor/rails/actionmailer/lib/action_mailer/base.rb:227:in`method\_missing’  
> #{RAILS\_ROOT}/app/controllers/people\_controller.rb:8:in `sendtest’

I solved the problem with a crude workaround. Since I am only using  
Datebox (which has no email features) I just cleared the contents of  
“/vendor/plugins/engines/lib/engines/action\_mailer\_extensions.rb”. But  
hopefully the Rails Engine team will fix this so it works with Rails  
1.1.

---

<div class="post-metadata">

**Author:** ![battreal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@battreal](https://www.ruby-forum.com/u/battreal)\
**Post date:** [June 1, 2006, 10:49am UTC](https://www.ruby-forum.com/t/datebox/95431/4 "2006-06-01T10:49:33Z")

</div>

If you could file a ticket on the engines issue-tracking site, with as  
much information (Rails/Ruby/engines versions, stack traces and so  
on), we’ll get on it.

- james
