I want to write plain text with a Tab character between values in HAML like
Name Age Address Paul 23 1115 W Franklin
so that when i copy above data in excel spreadsheet it must copied to different columns like
Paul copied to column A, 23 copied to column B and so on...
so how to insert tab between values?
I m not sure if this is the right way to accomplished above, but one of my colleague answered this and its working absolutely fine
To display data tab separated we need to render data in a textarea like this
%textarea{:cols => 40, :rows=>5, :readonly => "readonly"}= "#{@account.Name}\t#{@account.Number}\t#{@account.Address}\n"and when it is copied, it goes to different columns in spreadsheet
Hope this help to others too…..
thanks