a .each, but when I put to insert, it just insert the last index.
emails = params[ :email ][ :email ].split( ";" )
@e = emails
<%= @e %>
return : ["email@example.com,My Name", "firstname.lastname@example.org,My Name"]
emails.each do |e|
for_each_one = e.split( "," )
@a = for_each_one
#@email.name = for_each_one[ 0 ]
#@email.email = for_each_one[ 1 ]
# @group.emails << @email
<% @a.each do |a| %>
<%= a %><br />
<% end %>
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.