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