Skip to content

Commit 5a443b0

Browse files
committed
Use error_path route helper instead of hardcoded string
1 parent e67feca commit 5a443b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/error/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<div class="card-body">
33
<h1 class="card-title">Intentional Error Test</h1>
44
<p class="card-text" style="color:grey">Click the button below to trigger an intentional test exception.</p>
5-
<%= button_to "Trigger Exception", "/error", method: :post, class: "btn btn-danger", data: { turbo: false } %>
5+
<%= button_to "Trigger Exception", error_path, method: :post, class: "btn btn-danger", data: { turbo: false } %>
66
</div>
77
</div>

0 commit comments

Comments
 (0)