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

In highrisehq.com by 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.

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

Regards,
Timo

Thanks Timo.

I didn’t know about that site. Awesome.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs