Skip to content

Commit 0f9f0ba

Browse files
committed
Singularize object creation form resource name.
Currently the resource name on the object creation form is showing in plural form. This commit adds a `singular: true' parameter to the display_resource_name method in the object creation view to explicitly show the resource name in singular form.
1 parent b7aa546 commit 0f9f0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/administrate/application/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ to do the heavy lifting.
1818
<% content_for(:title) do %>
1919
<%= t(
2020
"administrate.actions.new_resource",
21-
name: display_resource_name(page.resource_name).titleize
21+
name: display_resource_name(page.resource_name, singular: true)
2222
) %>
2323
<% end %>
2424

0 commit comments

Comments
 (0)