Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e4737c

Browse files
committed
コメント位置を上に移動して統一
1 parent 4b52ff7 commit 7e4737c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/controllers/errors_controller.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
1518
end

0 commit comments

Comments
 (0)