aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
blob: 9463da520b2f3555df3803b5a704a5f0c5db6217 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                        
                                    




                                                       
                                                                                                       




                                          
 
                          


          
 


                                               
 
                                                                                                  
         
<header>
  <h1>Routing Error</h1>
</header>
<div id="container">
  <h2><%= @exception.message %></h2>
  <% unless @exception.failures.empty? %>
    <p>
      <h2>Failure reasons:</h2>
      <ol>
      <% @exception.failures.each do |route, reason| %>
        <li><code><%= route.inspect.gsub('\\', '') %></code> failed because <%= reason.downcase %></li>
      <% end %>
      </ol>
    </p>
  <% end %>
  <%= render template: "rescues/_trace" %>

<% if @routes_inspector %>
  <h2>
    Routes
  </h2>

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

  <%= @routes_inspector.format(ActionDispatch::DebugExceptions::TableRoutesFormatter.new(self)) %>
<% end %>