From 8e6c5f81a11dde52fb7ee8a371fb2a343eb164f4 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 6 May 2016 12:27:01 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index e9fbdc6..f3b60b4 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -37,7 +37,7 @@ class VehiclesController < ApplicationController redirect_to @vehicle else flash[:error] = @vehicle.errors.full_messages.to_sentence - redirect_to :new + redirect_to new_vehicle_path end end @@ -68,7 +68,7 @@ class VehiclesController < ApplicationController flash[:notice] = "Vehicle updated" redirect_to @vehicle else - redirect_to :edit + redirect_to edit_vehicle_path end flash[:error] = @vehicle.errors.full_messages.to_sentence if @vehicle.errors end