Sha256: aee20abeb04303ce5976818a71033df64a1237695ca40526b1f3f4160c2df953

Contents?: true

Size: 145 Bytes

Versions: 1

Compression:

Stored size: 145 Bytes

Contents

class ProductsController < ApplicationController
  def index
    @products = Product.page(params[:page]).
      per(params[:per] || 5)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kaminari-surface-0.1.0 example/app/controllers/products_controller.rb