<% content_for :style do %> #route_table { margin: 0; border-collapse: collapse; } #route_table thead tr { border-bottom: 2px solid #ddd; } #route_table thead tr.bottom { border-bottom: none; } #route_table thead tr.bottom th { padding: 10px 0; line-height: 15px; } #route_table thead tr.bottom th input#search { -webkit-appearance: textfield; } #route_table tbody tr { border-bottom: 1px solid #ddd; } #route_table tbody tr:nth-child(odd) { background: #f2f2f2; } #route_table tbody.exact_matches, #route_table tbody.fuzzy_matches { background-color: LightGoldenRodYellow; border-bottom: solid 2px SlateGrey; } #route_table tbody.exact_matches tr, #route_table tbody.fuzzy_matches tr { background: none; border-bottom: none; } #route_table td { padding: 4px 30px; } #path_search { width: 80%; font-size: inherit; } @media (prefers-color-scheme: dark) { #route_table tbody tr:nth-child(odd) { background: #333; } #route_table tbody.exact_matches, #route_table tbody.fuzzy_matches { color: #333; } } <% end %> <%= yield %>
Helper HTTP Verb Path Controller#Action
<%# Helper %> <%= link_to "Path", "#", 'data-route-helper' => '_path', title: "Returns a relative path (without the http or domain)" %> / <%= link_to "Url", "#", 'data-route-helper' => '_url', title: "Returns an absolute URL (with the http and domain)" %> <%# HTTP Verb %> <%# Path %> <%= search_field(:path, nil, id: 'search', placeholder: "Path Match") %> <%# Controller#action %>