update survey json

This commit is contained in:
Aung Myo
2017-11-07 15:19:22 +06:30
parent 75118ef88b
commit 55943a2e33
3 changed files with 4 additions and 6 deletions

View File

@@ -46,8 +46,6 @@ class Settings::CommissionsController < ApplicationController
# PATCH/PUT /commissions/1.json
def update
respond_to do |format|
puts commission_params.to_json
puts "updddddddddddddddddddddd"
if @commission.update(commission_params)
format.html {redirect_to settings_commission_path(@commission), notice: 'Commission was successfully updated.'}
format.json {render :show, status: :ok, location: @commission}