Re: [Rails] How to split a array

2011-12-23 Thread Greg Akins
On Fri, Dec 23, 2011 at 12:28 PM, honey ruby wrote: > 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_c

[Rails] How to split a array

2011-12-23 Thread honey ruby
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| %> <%= late_co