app/views/administrate/application/index.html.erb in administrate-0.5.0 vs app/views/administrate/application/index.html.erb in administrate-0.6.0
- old
+ new
@@ -36,10 +36,10 @@
<header class="header">
<h1 class="header__heading" id="page-title"><%= content_for(:title) %></h1>
<div class="header__actions">
<%= link_to(
"#{t("administrate.actions.new")} #{page.resource_name.titleize.downcase}",
- [:new, namespace, page.resource_name],
+ [:new, namespace, page.resource_path],
class: "button",
) if valid_action? :new %>
</div>
</header>