Sha256: a1a42346f2ac1b7ca44718e1cc6248e5b043ca19d9e0d7097493ebeaef92af62
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
<div class="table-responsive"> <table class="table table-responsive rrf-routes"> <thead> <tr> <th scope="col">Path</th> <th scope="col">Verb</th> <th scope="col">Controller#Action</th> </tr> </thead> <%# Render first group of routes directly. %> <tbody> <% @route_groups.values[0].each do |route| %> <tr> <td><%= route[:path] %></td> <td><%= route[:verb] %></td> <td><%= route[:controller] %>#<%= route[:action] %></td> </tr> <% end %> </tbody> <%# Render any other groups under dropdowns. %> <% @route_groups.drop(1).each_with_index do |(name, route_group), index| %> <tr data-bs-toggle="collapse" data-bs-target="#route-group-<%= index %>" class="rrf-route-group-header"> <td colspan="3" class="text-center user-select-none"><%= name %></td> </tr> <tbody id="route-group-<%= index %>" class="collapse" style="padding: 0"> <% route_group.each do |route| %> <tr> <td><%= route[:path] %></td> <td><%= route[:verb] %></td> <td><%= route[:controller] %>#<%= route[:action] %></td> </tr> <% end %> </tbody> <% end %> </table> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest_framework-0.4.0 | app/views/rest_framework/_routes.html.erb |