Class: Refinery::Products::ProductsController

Inherits:
StoresApplicationController show all
Defined in:
app/controllers/refinery/products/products_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



9
10
11
12
13
14
15
# File 'app/controllers/refinery/products/products_controller.rb', line 9

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

  # you can use meta fields from your model instead (e.g. browser_title)
  # by swapping @page for @product in the line below:
  present(@page)
end