format.html { redirect_to root_path }
format.json { render json: @ar.to_json(Artist.show_json_opt), status: :created, location: @artist }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Artist.model_name.human)
format.html { render action: "new" }
format.json { render json: @ar.errors, status: :unprocessable_entity }
end
format.html { redirect_to '/home/configure' }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => Artist.model_name.human)
format.html { render action: "edit" }
format.json { render json: @ar.errors, status: :unprocessable_entity }
end