Module: TableForHelper

Defined in:
lib/table_for_helper.rb,
lib/table_for_helper/builder.rb,
lib/table_for_helper/version.rb

Defined Under Namespace

Classes: Builder

Constant Summary collapse

VERSION =
"0.25"

Instance Method Summary collapse

Instance Method Details

#table_for(resources, options = {}, &block) ⇒ Object

Creates a html table from a resource collection



6
7
8
# File 'lib/table_for_helper.rb', line 6

def table_for(resources, options = {}, &block)
  Builder.new(resources, options, &block).to_html
end