Skip to content

Commit d064907

Browse files
committed
エラー表示用 show テンプレートにヘルパー連携を追加
1 parent 5d202b7 commit d064907

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/views/errors/show.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<% @status_code = local_assigns[:status_code].to_i %>
2+
<% @title = error_title(@status_code) %>
3+
<% @desc = error_desc(@status_code) %>
4+
15
<% provide(:title, @title) %>
26
<% provide(:desc, @desc) %>
37

0 commit comments

Comments
 (0)