Sha256: 77e9b034366caf25961127e3091bc9880f5f5155304c79beed9f55df9e42dc56
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
<h3>Application Routes</h3> <% @route_set.routes.group_by{ |r| r.controller }.each do |controller, routes| %> <table> <thead> <tr> <th><%= controller.titleize.gsub("/", "::") %></th> <th>Description</th> </tr> </thead> <tbody> <% routes.each do |route|%> <tr> <td class="resource"> <%= link_to "#{route.verb} #{route.path}", route_path(:id => generate_name(route.verb, route.path)) %> </td> <td> <% if file_exists?(route.verb, route.path) %> <%= route.description %> <%= link_to 'Update', edit_route_path(generate_name(route.verb, route.path)) if is_in_dev?%> <% else %> <%= link_to 'Create a description', edit_route_path(generate_name(route.verb, route.path)) if is_in_dev?%> <% end %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docushin-0.0.2 | app/views/docushin/routes/index.html.erb |