Activate Ember2 for suppliers

This commit is contained in:
2015-08-27 19:52:47 +02:00
parent e71580f349
commit eca4a23c64
79 changed files with 467 additions and 414 deletions
@@ -58,7 +58,7 @@ module Suppliers
respond_to do |format|
if @section.save
format.html { redirect_to [:suppliers, @section], notice: t('action.create.successfull', model: Section.model_name.human) }
format.json { render json: @section, serializer: SupplierSectionSerializer, status: :created }
format.json { render json: @section, serializer: Suppliers::SectionSerializer, status: :created }
else
format.html { render action: "new" }
format.json { render json: {errors: @section.errors}, status: :unprocessable_entity }