Update vehicles_controller.rb

This commit is contained in:
2016-05-11 09:09:00 -04:00
parent d7c2ef388f
commit ee088c65f2

View File

@@ -62,9 +62,9 @@ class VehiclesController < ApplicationController
flash[:notice] = "Vehicle updated"
redirect_to @vehicle
else
flash[:error] = @vehicle.errors.full_messages.to_sentence if @vehicle.errors
redirect_to edit_vehicle_path
end
flash[:error] = @vehicle.errors.full_messages.to_sentence if @vehicle.errors
end
# delete a specific vehicle