1
0

Edit/update improvements

This commit is contained in:
cryptogopher
2019-12-06 23:02:02 +01:00
parent 681c0279fb
commit 32ad182870
3 changed files with 5 additions and 11 deletions

View File

@@ -31,9 +31,11 @@ class MeasurementsController < ApplicationController
def update
if @measurement.update(measurement_params)
flash[:notice] = 'Updated measurement'
prepare_measurements
render :index
else
render :edit
end
prepare_measurements
render :index
end
def destroy