hey everyone i want to split the array.This is the out put when i
print array "Khamar  Md,2 hrs: 5 min,Accounts,Gandhinagar" and i wanna
split them and i want to print them in different columns in a table.
<%x=Array.new%>
    <%x=@late_commers.split(",")%>
<% x.each do |late_commer|  %>
<td><%= late_commer.at(0) %></td>
<%end%>

when i use the about code i get Khamar  Md,2 hrs: 5
min,Accounts,Gandhinagar in one column only . i want them in different
columns like
Name          |   Time           |   Dept        |    Loc
-------------------------------------------------------------------------
Khamar  Md    2 hrs: 5 min   Accounts      Gandhinagar
 Dis is the Output i need.Can any one help out how to split the array
plz..


Thanks in Advance guys

-- 
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.

Reply via email to