mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | redirects to bike edit page when bike updated successfully
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user