there is csv class showtable() function to change csv file into html
table,can i make it in ruby?
···
--
Posted via http://www.ruby-forum.com/.
there is csv class showtable() function to change csv file into html
table,can i make it in ruby?
--
Posted via http://www.ruby-forum.com/.
Yes.
Kind regards
robert
2010/6/1 Pen Ttt <myocean135@yahoo.cn>:
there is csv class showtable() function to change csv file into html
table,can i make it in ruby?
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
Open a file for writing, use a CSV library to read the CSV file, write
each record as HTML to the opened file (potentially using another
library, e.g. CGI or ERB) and be done. What did you try so far?
Cheers
robert
2010/6/1 Pen Ttt <myocean135@yahoo.cn>:
how to do it ?
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
for example ,there is a csv file , two rows two coulums
2,3
4,5
how to write a ruby program with erb or cgi
to get the html file:
<table >
<tr>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
</tr>
</table>
--
Posted via http://www.ruby-forum.com/.
You open your favorite text editor or IDE and type in all the commands you need (i.e. as I indicated earlier) to get the program completed.
This is a public forum denoted to the _discussion_ of Ruby topics - not a free implementation service. If you need introductory material I suggest you explicitly ask for it.
Cheers
robert
On 02.06.2010 06:40, Pen Ttt wrote:
for example ,there is a csv file , two rows two coulums
2,3
4,5how to write a ruby program with erb or cgi
to get the html file:
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/