Nathan Olberding wrote:
> I'm working on a CGI script that iterates through a list of items of a 
> class I've defined (class Report). Report::to_s just returns the string 
> "yay!" for testing purposes.
>
> When I run this code:
> ---------------------
>
> puts "<div style=\"float:left;margin-right:2em\">Reports:"
> puts "<ol>"
> reports.each do |x|
> 	begin
> 		puts "<li>" + x.to_s + "</li>"
> 	rescue
> 		puts "<li>...</li>"
> 	end
> end
> puts "</ol>"
> puts "</div>"
>   


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

-Justin