From fa5dcbf9a90901070ba8d23c6a62f33c5454edae Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 25 Jun 2019 12:37:49 -0400 Subject: [PATCH] Fixed redirect to for new vehicles --- app/controllers/vehicles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index a1632a2..c4983e9 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -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