def show_for object, html_options = {}, &block
      html_options = html_options.dup

      tag = html_options[:list_tag] || IndexFor.list_tag

      html_options[:id] ||= show_for_id(object)
      html_options[:class] = show_for_class(object, html_options)

      builder = html_options[:builder] || IndexFor::ListColumnBuilder
      content = capture(builder.new(object, html_options, self), &block)

      content_tag(tag, content, html_options)
    end
def show_for object, html_options = {}, &block
      html_options = html_options.dup

      tag = html_options[:list_tag] || IndexFor.list_tag

      html_options[:id] ||= show_for_id(object)
      html_options[:class] = show_for_class(object, html_options)

      builder = html_options[:builder] || IndexFor::ListColumnBuilder
      content = capture(builder.new(object, html_options, self), &block)

      content_tag(tag, content, html_options)
    end
Creates a desc list around the object and yields a builder.

 Example:

   show_for @user do |l|
     l.attribute :name
     l.attribute :email
   end