actionpack/lib/action_dispatch/middleware/templates/rescues/_actions.html.erb
<% actions = exception_wrapper.actions %>
<% if actions.any? %>
<div class="actions">
<% actions.each do |action, _| %>
<%= button_to action, ActionDispatch::ActionableExceptions.endpoint, params: {
error: exception_wrapper.exception_class_name,
action: action,
location: request.path
} %>
<% end %>
</div>
<% end %>