lk | redirects to bike edit page when bike updated successfully

This commit is contained in:
Louis Knapp
2016-07-30 20:24:05 -05:00
parent 0ee1168f6a
commit b7090dba0d
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class BikesController < ApplicationController
def update
if @bike.update(bike_params)
redirect_to @bike, notice: 'Bike was successfully updated.'
redirect_to edit_bike_path(@bike), notice: 'Bike was successfully updated.'
else
render action: 'edit'
end