Reputation: 692
I am using this:
<%= page_entries_info @result, :entry_name => 'result' %>
But the in the page what I am getting is:
Displaying #<class:0x007fe097746308>s 1 - 20 of 52 in total
What I am missing here?
Upvotes: 1
Views: 335
Reputation: 1989
The page_entries_info
method uses a key called :model
, not :entry_name
.
This is what it should look like:
<%= page_entries_info @result, model: 'result' %>
UPDATE
You can customize the text that page_entries_info
generates by editing your config/locale/en.yml
file (see here for details).
To get "results" to show as capitalized, you would have to make these changes to that file:
en:
will_paginate:
models:
result:
zero: Results
one: Result
few: Results
other: Results
Upvotes: 2