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 c968ead commit 291e83cCopy full SHA for 291e83c
1 file changed
app/views/errors/not_found.html.erb
@@ -5,10 +5,13 @@
5
6
<p class="is-lead">The page you're looking for couldn't be found.</p>
7
8
-<p>You might have followed an old link, or a post might have been deleted.</p>
+<%
9
+ is_user = request.original_fullpath.include?(user_path)
10
+%>
11
12
+<p>You might have followed an old link, or the <%= is_user ? 'user' : 'post' %> might have been deleted.</p>
13
14
<p>
15
<%= link_to 'Go back', :back, class: 'button is-outlined' %>
16
<%= link_to 'Go home', root_path, class: 'button is-outlined' %>
-</p>
17
+</p>
0 commit comments