Class: NimbleshopSimply::ProductGroupsController

Inherits:
SimplyController
  • Object
show all
Defined in:
app/controllers/nimbleshop_simply/product_groups_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



8
9
10
11
12
13
14
15
# File 'app/controllers/nimbleshop_simply/product_groups_controller.rb', line 8

def show
  @product_group        = ProductGroup.find_by_permalink!(params[:id])
  @products             = @product_group.products
  @link_groups          = LinkGroup.all
  @product_groups       = ProductGroup.all

  respond_with(@produt_group)
end