# ArgumentError - Unable to rectify please help

**URL:** <https://www.ruby-forum.com/t/argumenterror-unable-to-rectify-please-help/169254>\
**Category:** Rails\
**Created:** [June 1, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/argumenterror-unable-to-rectify-please-help/169254 "2009-06-01T14:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zufar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/5f8ce5/32.png) [@zufar](https://www.ruby-forum.com/u/zufar)\
**Post date:** [June 1, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/argumenterror-unable-to-rectify-please-help/169254/1 "2009-06-01T14:47:33Z")

</div>

Hello,

I am stuck in a problem which I am unable to understand. I am trying to  
send an email, which I have done before, after user registers himself on  
a website. User provides email address which he has to confirm before  
getting any further communication. I have to do three things before the  
user object is saved, like creating some other records and sending email  
to confirm email, in a transaction. But, rails is throwing some error  
(ArgumentError (interning empty string)) while calling  
Mailer.deliver\_confirm(email, code).

The stack trace is at [http://pastie.org/496446](http://pastie.org/496446)

Please provide suggestions as where I am going wrong. I am using  
Rails-2.3.2 and Ruby-1.8.7 this time.

---

<div class="post-metadata">

**Author:** ![zufar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/5f8ce5/32.png) [@zufar](https://www.ruby-forum.com/u/zufar)\
**Post date:** [June 1, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/argumenterror-unable-to-rectify-please-help/169254/2 "2009-06-01T17:12:43Z")

</div>

What’s going on in line 105 of accounts\_controller.rb? Also, is there  
any information in the log file that corresponds to the failure?

On Jun 1, 8:47 am, Aslam S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![zufar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/5f8ce5/32.png) [@zufar](https://www.ruby-forum.com/u/zufar)\
**Post date:** [June 2, 2009, 7:06am UTC](https://www.ruby-forum.com/t/argumenterror-unable-to-rectify-please-help/169254/3 "2009-06-02T07:06:36Z")

</div>

I have written a ActionMailer class called the Mailer and I am sending  
email on that line:  
Mailer.deliver\_confirm(email, code)

There is no additional information other than the error message which I  
have pasted.

Rick Lloyd wrote:

> What’s going on in line 105 of accounts\_controller.rb? Also, is there  
> any information in the log file that corresponds to the failure?
> 
> On Jun 1, 8:47ï¿½am, Aslam S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
