manager: use administrate helper to retrieve resource path
This is lifted from the current default template provided by administrate.
This commit is contained in:
parent
b39b43179d
commit
dc33f4a395
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ as defined by the routes in the `admin/` namespace
|
||||||
|
|
||||||
<%= link_to(
|
<%= link_to(
|
||||||
display_resource_name(resource),
|
display_resource_name(resource),
|
||||||
[namespace, resource.path],
|
resource_index_route(resource),
|
||||||
class: "navigation__link navigation__link--#{nav_link_state(resource)}"
|
class: "navigation__link navigation__link--#{nav_link_state(resource)}"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue