diff --git a/app/controllers/locations_controller.rb b/app/controllers/locations_controller.rb index f28fcef6a..53874988c 100644 --- a/app/controllers/locations_controller.rb +++ b/app/controllers/locations_controller.rb @@ -31,7 +31,7 @@ class LocationsController < ApplicationController if @location.update(location_params) location_params[:add_another_location] == "Yes" ? redirect_to(new_location_path) : redirect_to(scheme_check_answers_path(@scheme, anchor: "locations")) else - render :details, status: :unprocessable_entity + render :edit, status: :unprocessable_entity end end