Fixed redirect to for new vehicles

This commit is contained in:
ricky committed 2019-06-25 12:37:49 -04:00
1 parent e0aebb1c23
commit fa5dcbf9a9
1 file changed
+1 -1
+1 -1
View File
@@ -48,7 +48,7 @@ class VehiclesController < ApplicationController
redirect_to @vehicle
else
flash[:error] = @vehicle.errors.full_messages.to_sentence
redirect_to new_vehicle_path
redirect_to :back
end
end