Sha256: ec6113a26a94b7eac475cd1e3a44e44aa1a3d8a6e6ca8fd589a0d5a8614c5578

Contents?: true

Size: 1.11 KB

Versions: 33

Compression:

Stored size: 1.11 KB

Contents

class ProductsController < ApplicationController

  def simple_index
    tabulatr_for Product
  end

  def one_item_per_page_with_pagination
    @pagination = true
    tabulatr_for Product, render_action: 'one_item_per_page'
  end

  def one_item_per_page_without_pagination
    @pagination = false
    tabulatr_for Product, render_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

  def with_batch_actions
    begin
      tabulatr_for Product, render_action: 'with_batch_actions' do |batch_actions|
        batch_actions.destroy do |ids|
          ids.each do |id|
            Product.find(id).destroy
          end
        end
      end
    rescue Exception => e
      puts e.backtrace
      raise e
    end
  end

  def with_styling
    tabulatr_for Product
  end

  def implicit_columns
    tabulatr_for Product
  end

  def local_storage
    begin
      tabulatr_for Product
    rescue Exception => e
      puts e.backtrace
      raise e
    end
  end

  def without_filters
    tabulatr_for Product
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
tabulatr2-0.10.4 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.10.3 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.10.2 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.10.1 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.10.0 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.48 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.47 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.46 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.45 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.44 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.43 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.42 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.41 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.40 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.39 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.38 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.37 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.36 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.35 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.34 spec/dummy/app/controllers/products_controller.rb