Skip to content

Commit

Permalink
As a convention use String#downcase.pluralize
Browse files Browse the repository at this point in the history
  • Loading branch information
fesplugas committed Jan 24, 2011
1 parent 6dcd84f commit 8fd86fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/resources/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
<%= raw build_list(@resource, @fields, @items) %>
<%= will_paginate(@items, Typus.pagination) %>
<% else %>
<p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.pluralize.downcase) %></p>
<p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %></p>
<% end %>
2 changes: 1 addition & 1 deletion app/views/admin/templates/_has_n.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<%= table %>
<%= will_paginate(@items, Typus.pagination.merge(:anchor => association_name)) %>
<% else %>
<p><%= Typus::I18n.t("No %{resources} found.", :resources => association_name.pluralize.downcase) %></p>
<p><%= Typus::I18n.t("No %{resources} found.", :resources => association_name.downcase.pluralize) %></p>
<% end %>

</div>

0 comments on commit 8fd86fa

Please sign in to comment.