File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ class ErrorsController < ApplicationController
2
2
layout 'application'
3
3
4
4
def not_found
5
- render status : 404 # このアクションでは app/views/errors/not_found.html.erb が使用されます
5
+ # このアクションでは app/views/errors/not_found.html.erb が使用されます
6
+ render status : 404
6
7
end
7
8
8
9
def internal_server_error
9
- render status : 500 # このアクションでは app/views/errors/internal_server_error.html.erb が使用されます
10
+ # このアクションでは app/views/errors/internal_server_error.html.erb が使用されます
11
+ render status : 500
10
12
end
11
13
12
14
def unprocessable_entity
13
- render status : 422 # このアクションでは app/views/errors/unprocessable_entity.html.erb が使用されます
15
+ # このアクションでは app/views/errors/unprocessable_entity.html.erb が使用されます
16
+ render status : 422
14
17
end
15
18
end
You can’t perform that action at this time.
0 commit comments