Sha256: e2088b43736ab45501961b6a5de0d88f27ff2b8931f20574e24f5cf5239ec4d8

Contents?: true

Size: 155 Bytes

Versions: 2

Compression:

Stored size: 155 Bytes

Contents

class ProductsController < ApplicationController

  def index
    number = (params[:page] || 1)
    @products = Product.page(number, length: 1)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pagers-4.0.0.1 test/dummy/app/controllers/products_controller.rb
pagers-4.0.0.0 test/dummy/app/controllers/products_controller.rb