Class: Comable::ProductsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/comable/products_controller.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#current_customer

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/comable/products_controller.rb', line 3

def index
  @products = Comable::Product.all
end

#showObject



7
8
9
# File 'app/controllers/comable/products_controller.rb', line 7

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