[#407] New feature for Ruby? — Clemens.Hintze@...

Hi all,

27 messages 1999/07/01
[#413] Re: New feature for Ruby? — matz@... (Yukihiro Matsumoto) 1999/07/01

Hi Clemens,

[#416] Re: New feature for Ruby? — Clemens Hintze <c.hintze@...> 1999/07/01

On Thu, 01 Jul 1999, Yukihiro Matsumoto wrote:

[#418] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/01

Hi

[#426] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/02

Hi,

[#440] Now another totally different ;-) — Clemens Hintze <c.hintze@...>

Hi,

21 messages 1999/07/09
[#441] Re: Now another totally different ;-) — matz@... (Yukihiro Matsumoto) 1999/07/09

Hi,

[#442] Re: Now another totally different ;-) — Clemens Hintze <c.hintze@...> 1999/07/09

On Fri, 09 Jul 1999, you wrote:

[#443] — Michael Hohn <hohn@...>

Hello,

26 messages 1999/07/09
[#444] interactive ruby, debugger — gotoken@... (GOTO Kentaro) 1999/07/09

Hi Michael,

[ruby-talk:00521] Re: CGI.rb

From: Wakou Aoyama <wakou@...>
Date: 1999-07-24 20:57:35 UTC
List: ruby-talk #521
Hello.

On Sat, Jul 24, 1999 at 08:09:14PM +0200,
Michael Neumann <neumann@s-direktnet.de> wrote:

> I am using CGI.rb. It's very nice.

Oh, thank you.

> But, is it possible to create tables with it?

CGI.rb has no special way to make table for now.

cgi.table{
  cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} } +
  cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} } +
  cgi.tr{ cgi.td{"item"} + cgi.td{"item"} + cgi.td{"item"} }
}



require 'CGI'

cgi = CGI.new("html4Tr")

table = [
          ['00', '01', '02', '03'],
          ['10', '11', '12', '13'],
          ['20', '21', '22', '22'],
          ['30', '31', '32', '33']
        ]

print cgi.table{
        table.collect{|row|
          cgi.tr{
            row.collect{|item|
              cgi.td{ item }
            }
          }
        }
      }


-- 
Wakou Aoyama <wakou@fsinet.or.jp>

In This Thread