From: 7stud -- Date: 2009-05-10T03:07:23+09:00 Subject: Re: CGI help 7stud -- wrote: > > I have no idea why that is the case. > Here is a simplification of the issue if anyone wants to offer some advice. The following code produces no errors: #!/usr/bin/ruby require "cgi" cgi = CGI.new('html4') output = cgi.html { cgi.head { cgi.title { "Test" } } + cgi.body { cgi.form('post') { cgi.textarea() + cgi.submit } #form } #cgi.body } #cgi.html This code produces kEND errors: #!/usr/bin/ruby require "cgi" cgi = CGI.new('html4') output = cgi.html { cgi.head { cgi.title { "Test" } } + cgi.body { cgi.form('post') { if true cgi.textarea() + end cgi.submit } #form } #cgi.body } #cgi.html -- Posted via http://www.ruby-forum.com/.