aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/things_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/things_controller.rb')
-rw-r--r--app/controllers/things_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/things_controller.rb b/app/controllers/things_controller.rb
index cc9b5b0..97761aa 100644
--- a/app/controllers/things_controller.rb
+++ b/app/controllers/things_controller.rb
@@ -29,7 +29,7 @@ class ThingsController < ApplicationController
if updated
redirect_to thing_url(@thing.reload), notice: t('things.create-success')
else
- render :new, status: :unprocessable_entity
+ render :new, status: :unprocessable_content
end
end
@@ -46,7 +46,7 @@ class ThingsController < ApplicationController
if updated
redirect_to edit_thing_url(@thing), notice: t('things.update-success')
else
- render :edit, status: :unprocessable_entity
+ render :edit, status: :unprocessable_content
end
end