1
0
Fork 0
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:
Nick Sutterer 2014-05-09 09:29:18 +10:00 committed by Yuki Nishijima
parent e823414ca7
commit 32654f6e28

View file

@ -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' %>