# File lib/facet/cgi-extra.rb, line 91 def render_object(o, collection, edit) r = "<table>\n" o.instance_variables.each do |attr_name| attr_value = o.instance_variable_get(attr_name) attr_anns = o.class.send(attr_name[1..-1]) r << " <tr>\n" r << " <td>" << attr_anns[:description] << "</td>\n" r << " <td>" << text_or_input(edit, :name => "#{collection}[#{o.class.name}][#{attr_name}]", :value => attr_value) << "</td>\n" r << " </tr>\n" end r << "</table>" r end