Class: Spina::Shop::Admin::Settings::ProductCategoriesController

Inherits:
ShopController show all
Defined in:
app/controllers/spina/shop/admin/settings/product_categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



27
28
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 27

def create
end

#destroyObject



33
34
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 33

def destroy
end

#editObject



21
22
23
24
25
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 21

def edit
  @product_category = ProductCategory.find(params[:id])
  add_breadcrumb @product_category.name, [:admin, :settings, @product_category]
  add_breadcrumb t('spina.edit')
end

#indexObject



9
10
11
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 9

def index
  @product_categories = ProductCategory.all
end

#newObject



18
19
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 18

def new
end

#showObject



13
14
15
16
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 13

def show
  @product_category = ProductCategory.find(params[:id])
  add_breadcrumb @product_category.name
end

#updateObject



30
31
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 30

def update
end