module DisplayFor::Helper

Public Instance Methods

csv_for(resource_class, collection, html_options={}, &block) click to toggle source
# File lib/display_for/helper.rb, line 15
def csv_for(resource_class, collection, html_options={}, &block)
  Builder::Csv.new(resource_class, collection, html_options, self, &block).to_s
end
list_for(resource_class, collection, html_options={}, &block) click to toggle source
# File lib/display_for/helper.rb, line 3
def list_for(resource_class, collection, html_options={}, &block)
  Builder::List.new(resource_class, collection, html_options, self, &block).to_s
end
table_for(resource_class, collection, html_options={}, &block) click to toggle source
# File lib/display_for/helper.rb, line 7
def table_for(resource_class, collection, html_options={}, &block)
  Builder::Table.new(resource_class, collection, html_options, self, &block).to_s
end
view_for(resource, html_options={}, &block) click to toggle source
# File lib/display_for/helper.rb, line 11
def view_for(resource, html_options={}, &block)
  Builder::View.new(resource, html_options, self, &block).to_s
end