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
22 layout 'application'
33
44 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
67 end
78
89 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
1012 end
1113
1214 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
1417 end
1518end
You can’t perform that action at this time.
0 commit comments