lib/generators/dry_crud/templates/app/helpers/standard_helper.rb
def table(entries, *attrs, &block)
    if entries.present?
      StandardTableBuilder.table(entries, self, attrs.extract_options!) do |t|
        t.attrs(*attrs)
        yield t if block_given?
      end
    else
      content_tag(:div, ti(:no_list_entries), :class => 'table')
    end
  end
# Renders a table for the given entries. One column is rendered for each attribute passed.
# If a block is given, the columns defined therein are appended to the attribute columns.
# If entries is empty, an appropriate message is rendered.
# An options hash may be given as the last argument.
Renders a table for the given entries. One column is rendered for each attribute passed.
If a block is given, the columns defined therein are appended to the attribute columns.
If entries is empty, an appropriate message is rendered.
An options hash may be given as the last argument.
Renders a table for the given entries . One column is rendered for each attribute passed . If a block is given the columns defined therein are appended to the attribute columns . If entries is empty an appropriate message is rendered . An options hash may be given as the last argument .
def table(entries, *attrs, &block)
    if entries.present?
      StandardTableBuilder.table(entries, self, attrs.extract_options!) do |t|
        t.attrs(*attrs)
        yield t if block_given?
      end
    else
      content_tag(:div, ti(:no_list_entries), :class => 'table')
    end
  end
def table ( entries , * attrs , & block ) if entries . present? StandardTableBuilder . table ( entries , self , attrs . extract_options! ) do | t | t . attrs ( * attrs ) yield t if block_given? end else content_tag ( :div , ti ( :no_list_entries ) , :class => 'table' ) end end
Renders a table for the given entries.
Renders a table for the given entries .
entries
attrs
block