Class: Gemgento::ProductsController

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

Instance Method Summary collapse

Instance Method Details

#showObject



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

def show
  @product = Gemgento::Product.find(params[:id])
  @current_category = @product.current_category(session[:category])
end