Displaying 1 result from an estimated 1 matches for "alt_flow_".
Did you mean:
alt_flow
2006 Jun 02
4
Creating an array of params
I''ve got a bunch of text fields that I''d like to access as an array.
The code looks like this:
<%= text_field_tag "people[0][entry]" %>
<%= text_field_tag "people[1][entry]" %>
<%= text_field_tag "people[2][entry]" %>
So when I submit the form, I''d like to be able to use it like
params[:people].each {|p| p[:entry]}