Browse Source

correct page when errros

pull/704/head
JG 3 years ago
parent
commit
49d1d55b9d
  1. 2
      app/controllers/locations_controller.rb

2
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

Loading…
Cancel
Save