Sha256: 6a1d66ccb637b5e8190c10c7500120f84b02e6c9abfbc6b103bdc9f20c2d83ef

Contents?: true

Size: 174 Bytes

Versions: 1

Compression:

Stored size: 174 Bytes

Contents

class ProductsController < ApplicationController
  def index
    @products = Product.published
  end

  def show
    @product = Product.published.find(params[:id])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
daimon-exhibition-0.1.0 spec/dummy/app/controllers/products_controller.rb