Re: [Rails] Export CSV

2013-11-09 Thread Tamara Temple
On Nov 8, 2013, at 12:24 AM, Daynthan Kabilan wrote: > Hi friends, > > i am using csv export on my application. in my view file code is > > > <%- headers = ["Transaction ID", "Activity ID", "Product Name","Customer > Name", "Ticket code"] -%> > <%= CSV.generate_line(headers).strip %> > <%if

Re: [Rails] Export CSV

2013-11-08 Thread Colin Law
On 8 November 2013 06:24, Daynthan Kabilan wrote: > Hi friends, > > i am using csv export on my application. in my view file code is > > > <%- headers = ["Transaction ID", "Activity ID", "Product Name","Customer > Name", "Ticket code"] -%> > <%= CSV.generate_line(headers).strip %> > <%if !@trans.n

[Rails] Export CSV

2013-11-07 Thread Daynthan Kabilan
Hi friends, i am using csv export on my application. in my view file code is <%- headers = ["Transaction ID", "Activity ID", "Product Name","Customer Name", "Ticket code"] -%> <%= CSV.generate_line(headers).strip %> <%if !@trans.nil? && @trans.length > 0 %> <% @trans.each do |tran|%> <% if !t