How do I format a view to handle multiple instances of the same field.
For example, I want to send an email to several recipients. I list the
same field 5 times:
Email: <%= text_field 'invitation', 'recipient_email', :onkeyup => 'verifyInput()' %>
Email: <%= text_field 'invitation', 'recipient_email', :onkeyup => 'verifyInput()' %>
Email: <%= text_field 'invitation', 'recipient_email', :onkeyup => 'verifyInput()' %>
Email: <%= text_field 'invitation', 'recipient_email', :onkeyup => 'verifyInput()' %>
Email: <%= text_field 'invitation', 'recipient_email', :onkeyup => 'verifyInput()' %>
I can’t seem to collect the various instances of the input within the
controller. I have also tried the text_field_tag.
Would greatly appreciate any help. Thanks.
Mario