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 ["myem...@first.com,My Name"] ["myem...@second.com,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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.