Hello, what I want to do, the user gonna insert a string with right
combinations.
So, the user gonna put, the email[comma]name[semincolon]
This way, I need to split the semicolon, to have the array of strings,
after I need to split the comma, to have the name in a index, and the
email in another.
emails = params[ :email ][ :email ].split( ";" )
array = []
emails.each do |e|
foreach = e.split( ";" )
array << foreach
@a = array
end
["[email protected],My Name"]
["[email protected],My Name 2"]
But I can't access the index to split the comma.
Thank you
--
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 protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.