Sha256: f260eea47dba4642773dff51b39a4244357b63a312538d4a3d8efb5f6120680a

Contents?: true

Size: 1.02 KB

Versions: 55

Compression:

Stored size: 1.02 KB

Contents

<div class="table-responsive">
  <table class="table table-sm 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| %>
        <%= render partial: "rest_framework/route", locals: {route: route} %>
      <% 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">
        <% route_group.each do |route| %>
          <%= render partial: "rest_framework/route", locals: {route: route} %>
        <% end %>
      </tbody>
    <% end %>
  </table>
</div>

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
rest_framework-0.9.5 app/views/rest_framework/_routes.html.erb
rest_framework-0.9.4 app/views/rest_framework/_routes.html.erb
rest_framework-0.9.3 app/views/rest_framework/_routes.html.erb
rest_framework-0.9.2 app/views/rest_framework/_routes.html.erb
rest_framework-0.9.1 app/views/rest_framework/_routes.html.erb
rest_framework-0.9.0 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.17 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.16 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.15 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.14 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.13 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.12 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.11 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.10 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.9 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.8 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.7 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.6 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.5 app/views/rest_framework/_routes.html.erb
rest_framework-0.8.4 app/views/rest_framework/_routes.html.erb