aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
blob: 8c594c152312544d722218b8441d33aa81016719 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<h1>Routing Error</h1>
<p><pre><%=h @exception.message %></pre></p>
<% unless @exception.failures.empty? %>
  <p>
    <h2>Failure reasons:</h2>
    <ol>
    <% @exception.failures.each do |route, reason| %>
      <li><code><%=h route.inspect.gsub('\\', '') %></code> failed because <%=h reason.downcase %></li>
    <% end %>
    </ol>
  </p>
<% end %>
<%= render :template => "rescues/_trace" %>

<h2>
  Routes
</h2>

<p>
  Routes match in priority from top to bottom
</p>

<p><pre><%= @routes %></pre></p>