From 2e58400ba9f0d760886335434d7030ad6e2b2f03 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 8 Jan 2026 22:59:27 +0100 Subject: Move away from :unprocessable_entity to _content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was apparently deprecated in the previous version and rubocop is now complaining about it. Signed-off-by: Miquel Sabaté Solà --- app/controllers/searches_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/searches_controller.rb') diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index c811f10..ff738c2 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -26,7 +26,7 @@ class SearchesController < ApplicationController if @search.save redirect_to @search else - render :new, status: :unprocessable_entity + render :new, status: :unprocessable_content end end @@ -34,7 +34,7 @@ class SearchesController < ApplicationController if @search.update(search_params) redirect_to @search, status: :see_other else - render :edit, status: :unprocessable_entity + render :edit, status: :unprocessable_content end end -- cgit v1.2.3