From: Justin Collins Date: 2006-04-12T01:39:21+09:00 Subject: Re: Oddities of Iteration --------------000208070506090602080004 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Nathan Olberding wrote: > Justin Collins wrote: > >> Nathan Olberding wrote: >> >>> ... >>> >> Just as a side note, you'll probably find the CGI standard library >> easier to use than typing out the strings: >> >> http://ruby-doc.org/stdlib/libdoc/cgi/rdoc/classes/CGI.html >> > > Thanks! I've learned that having a one-line string for a method will > return that string. > > CGI might be good under Ruby, but I'm definitely in the habit of writing > my own HTML just because a lot of other languages' modules generate some > ugly HTML. I've got another project that's just starting out. If Ruby's > CGI is prettier, I might go that way. I do know that I like its > block-code styling. > > In general, the CGI library will spit out exactly what you give it. There's even a 'pretty' option so it will properly indent everything and make it easy to read, although I've found this can cause problems with textareas (extra whitespace). -Justin --------------000208070506090602080004--