<% content_for :style do %> h2, p { padding-left: 30px; } #route_table { margin: 0; border-collapse: collapse; word-wrap:break-word; table-layout: fixed; width:100%; } #route_table thead tr { border-bottom: 2px solid #ddd; } #route_table th { padding-left: 30px; text-align: left; } #route_table thead tr.bottom { border-bottom: none; } #route_table thead tr.bottom th { padding: 10px 30px; line-height: 15px; } #route_table #search_container { padding: 7px 30px; } #route_table thead tr th input#search { -webkit-appearance: textfield; width:100%; } #route_table thead th.http-verb { width: 10%; } #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; } @media (prefers-color-scheme: dark) { #route_table tbody tr:nth-child(odd) { background: #282828; } #route_table tbody.exact_matches tr, #route_table tbody.fuzzy_matches tr { background: DarkSlateGrey; } } <% end %> <%= yield %>
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 Controller#Action Source Location
<%= search_field(:query, nil, id: 'search', placeholder: "Search") %>