title: Change html attributes in ruby cgi
body: <p>How do I add an HTML attribute to a ruby cgi element. I saw an example similar to the one commented out below but it gives me the following error:</p>
  
  <pre><code>[Tue Dec 17 08:38:42 2013] [error] [client 127.0.0.1] Premature end of script headers: test1.rb, referer: http://localhost/test.rb
  [Tue Dec 17 08:38:42 2013] [error] [client 127.0.0.1] C:/wamp/www/htdocs/test1.rb:19: syntax error, unexpected '\\n', expecting tASSOC\r, referer: http://localhost/test.rb
  </code></pre>
  
  <p>I searched the web for other examples with no success.</p>
  
  <p>What am I missing? It seems like this should be fairly straightforward. </p>
  
  <pre><code>#!"C:\Ruby193\bin\ruby.exe"
  #!/Ruby193/bin/ruby
  require "cgi"
  require "to_bool"
  require 'net/telnet'
  require 'pp'
  cgi = CGI.new("html4")
  
  cgi.out {
   cgi.html{
    cgi.head{ "\n"+cgi.title{"Second Panel"} } +
     cgi.body { "\n"+
      cgi.form {"\n"+
          cgi.h1{"Params1   "} + "\n" +
    #     cgi.table(border=&gt;"1") { cgi.tr{cgi.td {"Artistxx"} + cgi.td{"Album"} +            cgi.td{"Albuxm"}}  +
          cgi.table{ cgi.tr{cgi.td {"Artistxx"} + cgi.td{"Album"} + cgi.td{"Albuxm"}}  +
          cgi.tr{cgi.td {"Artistxx"} + cgi.td{"Album"} + cgi.td{"Albuxm"}}  +
          cgi.tr{cgi.td {"Artistxx"} + cgi.td{"Album"} + cgi.td{"Albuxm"}} 
          } + "\n" +
              cgi.submit
           } 
        } 
     } 
  } 
  </code></pre>