Sha256: 68fa194bf4b49a9fbd604f82f2b4265dd721d09ed583b0e2e9bd4ba199c4fd6a

Contents?: true

Size: 1 KB

Versions: 12

Compression:

Stored size: 1 KB

Contents

class ProductsController < ApplicationController

  def simple_index
    begin
      tabulatr_for Product
    rescue Exception => e
      puts e.backtrace
      raise e
    end
  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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tabulatr2-0.9.4 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.3 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.2 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.1 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.9.0 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.8.9 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.8.8 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.8.7 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.8.6 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.8.5 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.8.4 spec/dummy/app/controllers/products_controller.rb
tabulatr2-0.8.3 spec/dummy/app/controllers/products_controller.rb