Forum: Ruby on Rails storing information for html form post request

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
525128e48ca2b4c7fb6176ea166fccfd?d=identicon&s=25 Eric G. (gotskill10)
on 2006-12-24 10:09
Hi, I have an ajaxed list of names, and I want to store their id's or
emails' so that when I submit the form, I can loop through all the
emails or ids.

My first thought is to make hidden fields like <%= hidden_field "email"
"one" %>

And then keep making new fields. Im trying not to make just one field
and have all the info seperated by something weird like "##". It just
doesnt seem professional.

Whats the best way to do this? I dont want to have to count how many
hidden fields I have, either, that would be tedious.

Any help would be greatly appreciated.

Thanks guys,
This topic is locked and can not be replied to.