Class: Spina::Shop::Admin::Settings::ProductCategoriesController
- Inherits:
-
ShopController
- Object
- Admin::AdminController
- AdminController
- ShopController
- Spina::Shop::Admin::Settings::ProductCategoriesController
- Defined in:
- app/controllers/spina/shop/admin/settings/product_categories_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
27 28 |
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 27 def create end |
#destroy ⇒ Object
33 34 |
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 33 def destroy end |
#edit ⇒ Object
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]) @product_category.name, [:admin, :settings, @product_category] t('spina.edit') end |
#index ⇒ Object
9 10 11 |
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 9 def index @product_categories = ProductCategory.all end |
#new ⇒ Object
18 19 |
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 18 def new end |
#show ⇒ Object
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]) @product_category.name end |
#update ⇒ Object
30 31 |
# File 'app/controllers/spina/shop/admin/settings/product_categories_controller.rb', line 30 def update end |