From: Scott Date: 2006-03-15T15:13:46+09:00 Subject: Re: Equivalent to ColdFusion's CFDUMP tag in Ruby on Rails? arg.... You made me do it. It sucks, but it works for basic types. You must use it with an Array or Hash otherwise you get no headers: class Object def to_html(value = self.to_s); return "#{value}" end end class String def to_html; super(self) end end class Symbol def to_html; super(':' + self.to_s) end end class NilClass def to_html; super('nil') end end class Hash def to_html html = "" self.each_pair do |k, v| html += "" end html += "
#{self.class}
#{k.to_html}#{v.to_html}
" super(html) end end class Array def to_html html = "" self.size.times do |index| html += "" end html += "
#{self.class}
#{index}#{self[index]}
" super(html) end end variable = { "first"=> "1", :a23 => "second", "third"=> { nil => "inner third 1", "inner third 2"=>"yeah" }, :values => [1, 2, 3, 4], nil => "fourth" } Then you can do: <%= variable.to_html %> To get output that looks very similar to the dBug stuff for Php. I used the styles that were at the link you provided, but I had to change up the names to fit better: