Update README.rdoc

Improve docs based on [source code](ebbcfac017/lib/kaminari/helpers/action_view_extension.rb (L74))
This commit is contained in:
Renan Gurgel 2015-10-13 21:57:33 -03:00
parent 90a1cd0084
commit ed3c3eee63
1 changed files with 9 additions and 1 deletions

View File

@ -181,8 +181,16 @@ Run the following generator command, then edit the generated file.
* the +page_entries_info+ helper method
<%= page_entries_info @users %>
<%= page_entries_info @posts %>
This renders a helpful message with numbers of displayed vs. total entries.
By default, the message will use the humanized class name of objects
in collection: for instance, "project types" for ProjectType models.
The namespace will be cutted out and only the last name will be used.
Override this with the <tt>:entry_name</tt> parameter:
<%= page_entries_info @posts, :entry_name => 'item' %>
#-> Displaying items 6 - 10 of 26 in total
* the +rel_next_prev_link_tags+ helper method