aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/searches_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/searches_controller.rb')
-rw-r--r--app/controllers/searches_controller.rb4
1 files changed, 2 insertions, 2 deletions
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