Skip to content

Commit c50c127

Browse files
committed
refactor: エラーページのビュー構成を変更
にビューを配置する構成を試みたが、意図通りに動作しなかった。 の設定で と指定されているため、 ディレクトリにビューファイルを配置する、よりシンプルで確実な構成に変更。
1 parent 50bd22e commit c50c127

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= render template: "errors/show", locals: { status_code: 500 } %>

app/views/errors/not_found.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= render template: "errors/show", locals: { status_code: 404 } %>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= render template: "errors/show", locals: { status_code: 422 } %>

0 commit comments

Comments
 (0)