mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Update README.rdoc
Improve docs based on [source code](ebbcfac017/lib/kaminari/helpers/action_view_extension.rb (L74)
)
This commit is contained in:
parent
90a1cd0084
commit
ed3c3eee63
1 changed files with 9 additions and 1 deletions
10
README.rdoc
10
README.rdoc
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue