diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 6b668bb..93f3fa3 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -63,6 +63,7 @@ class VehiclesController < ApplicationController redirect_to @vehicle else render :edit + flash[:error] = @vehicle.errors end end