We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4457879 commit f86b750Copy full SHA for f86b750
app/views/errors/show.html.erb
@@ -1,9 +1,9 @@
1
-<% @status_code = local_assigns[:status_code].to_i %>
2
-<% @title = error_title(@status_code) %>
3
-<% @desc = error_desc(@status_code) %>
+<%# The status_code local variable is passed from the parent template %>
+<% title = error_title(status_code) %>
+<% desc = error_desc(status_code) %>
4
5
-<% provide(:title, @title) %>
6
-<% provide(:desc, @desc) %>
+<% provide(:title, title) %>
+<% provide(:desc, desc) %>
7
8
<div id="top" class="title text-center">
9
<i class="cd cd-logo"></i>
@@ -13,9 +13,9 @@
13
</div>
14
15
<section class="introduction text-center list">
16
- <h2><%= @title %></h2>
+ <h2><%= title %></h2>
17
<p>
18
- <%= @desc %>
+ <%= desc %>
19
<br>
20
</p>
21
0 commit comments