Skip to content

Commit

Permalink
Remove requirement of route to have a name to be linked. Fixes #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregschmit committed Feb 27, 2023
1 parent f39a529 commit 3e2a403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/rest_framework/_route.html.erb
@@ -1,6 +1,6 @@
<tr>
<td>
<% if route[:route].name && route[:verb] == "GET" && route[:matches_params] %>
<% if route[:verb] == "GET" && route[:matches_params] %>
<%= link_to route[:relative_path], @route_props[:with_path_args].call(route[:route]) %>
<% else %>
<%= route[:relative_path] %>
Expand Down

0 comments on commit 3e2a403

Please sign in to comment.