diff --git a/app/controllers/phases_controller.rb b/app/controllers/phases_controller.rb index 0c21b97..9091e63 100644 --- a/app/controllers/phases_controller.rb +++ b/app/controllers/phases_controller.rb @@ -168,6 +168,10 @@ @phase = Phase.find(params[:id]) authorize @phase @phase.description = params["phase-desc"] + +puts "VALID? #{@phase.valid?} - #{@phase.errors.collect{|e,m| "#{e}: #{m}"}.join(", ")}" +puts @phases.inspect + if @phase.update_attributes(params[:phase]) redirect_to admin_show_phase_path(@phase), notice: _('Information was successfully updated.') else