mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
add README section about :views_prefix.
This commit is contained in:
parent
e823414ca7
commit
32654f6e28
1 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,11 @@ Run the following generator command, then edit the generated file.
|
|||
<%= paginate @users, :remote => true %>
|
||||
This would add <tt>data-remote="true"</tt> to all the links inside.
|
||||
|
||||
* specifying an alternative views directory (default is <tt>kaminari/</tt>)
|
||||
|
||||
<%= paginate @users, :views_prefix => '../templates/pagination' %>
|
||||
This would search for partials in <tt>app/views/../templates/pagination</tt>.
|
||||
|
||||
* the +link_to_next_page+ and +link_to_previous_page+ helper method
|
||||
|
||||
<%= link_to_next_page @items, 'Next Page' %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue