Sha256: 9a11785fa4db4a06aee81caf51628e32e2910b9df0bb46ff6e319a45ffeada15
Contents?: true
Size: 409 Bytes
Versions: 4
Compression:
Stored size: 409 Bytes
Contents
class StoreController < RailsCart::BaseController before_filter :find_cart def index list render :action => 'list' end # list products in the store # TODO: add constraints to the find based on category, etc. def list @products = Product.find(:all, :page => {:start => 1, :size => 15}) @product_cols = 3 end def show @product = Product.find(params[:id]) end end
Version data entries
4 entries across 4 versions & 1 rubygems