Improvements to new menu product category editing and adding new

This commit is contained in:
2014-11-25 13:31:40 +01:00
parent 1707f4d19f
commit a64d3de319
24 changed files with 162 additions and 86 deletions
@@ -76,7 +76,7 @@ module Suppliers
respond_to do |format|
if @product_category.save
format.html { redirect_to [:suppliers, :product_categories], notice: t('action.create.successfull', model: ProductCategory.model_name.human) }
format.json { render json: @product_category, status: :created, location: @product_category }
format.json { render json: @product_category, status: :created }
else
format.html { render action: "new" }
format.json { render json: @product_category.errors, status: :unprocessable_entity }