# Adding any number of email addresses by using 'add another e

**URL:** <https://www.ruby-forum.com/t/adding-any-number-of-email-addresses-by-using-add-another-e/92958>\
**Category:** Rails\
**Created:** [April 26, 2007, 1:51am UTC](https://www.ruby-forum.com/t/adding-any-number-of-email-addresses-by-using-add-another-e/92958 "2007-04-26T01:51:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [April 26, 2007, 1:51am UTC](https://www.ruby-forum.com/t/adding-any-number-of-email-addresses-by-using-add-another-e/92958/1 "2007-04-26T01:51:42Z")

</div>

In [highrisehq.com](http://highrisehq.com) by [37signls.com](http://37signls.com) I see that you can add any number of  
email address by using ‘Add another’ link. This is really nice feature.

I am running into so many issues while implementing something similar.  
Is  
there a blog posting or a sample code which solves similar problem.

Since a person uses :has\_many emails association, I don’t know how to  
dynamically name the new rows of form that is yet to be submitted. Then  
there is issue of validation and if the email address is not in proper  
format then the email address entered by the user needs to be preserved.

Thanks.

---

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [April 26, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/adding-any-number-of-email-addresses-by-using-add-another-e/92958/2 "2007-04-26T21:46:27Z")

</div>

Hi,

> I am running into so many issues while implementing something similar. Is  
> there a blog posting or a sample code which solves similar problem.

this might help: [http://www.railsforum.com/viewtopic.php?id=1065](http://www.railsforum.com/viewtopic.php?id=1065)

Regards,  
Timo

---

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [April 27, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/adding-any-number-of-email-addresses-by-using-add-another-e/92958/3 "2007-04-27T16:32:26Z")

</div>

Thanks Timo.

I didn’t know about that site. Awesome.

-
