Sha256: f62a749bde5d7b303e624e87e05524581d48df87bbaec8cd6da90d89480f44a2
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
class ProductsController < ApplicationController def simple_index tabulatr_for Product end def one_item_per_page_with_pagination @pagination = true tabulatr_for Product, {action: 'one_item_per_page'} end def one_item_per_page_without_pagination @pagination = false tabulatr_for Product, {action: 'one_item_per_page'} end def count_tags tabulatr_for Product end def stupid_array @products = Product.order('price asc').limit(11).to_a end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tabulatr2-0.6.0 | spec/dummy/app/controllers/products_controller.rb |