aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/_actions.html.erb
blob: e181b6c53933ac2d6fbfb069b5bec3116e1d24a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<% if ActiveSupport::ActionableError === exception %>
  <% actions = ActiveSupport::ActionableError.actions(exception) %>

  <% if actions.any? %>
    <div class="actions">
      <% actions.each do |action, _| %>
        <%= button_to action, ActionDispatch::ActionableExceptions.endpoint, params: {
          error: exception.class.name,
          action: action,
          location: request.path
        } %>
      <% end %>
    </div>
  <% end %>
<% end %>