Sha256: cb1de2e618aeccfcc11ca8947a0be528124df347fd06256eb542ff30ce277743
Contents?: true
Size: 242 Bytes
Versions: 5
Compression:
Stored size: 242 Bytes
Contents
class ProductsController < ApplicationController def show @product = Product.find(params[:id]) end def reviews @product = Product.find(params[:product_id]) end def recent @products = Product.order("id DESC") end end
Version data entries
5 entries across 5 versions & 1 rubygems