add README section about :views_prefix.

This commit is contained in:
Nick Sutterer 2014-05-09 09:29:18 +10:00
parent f0de0642d9
commit 7b2d5eb0e1
1 changed files with 5 additions and 0 deletions

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