Updated examples and readme for `path_to_prev_page` and `path_to_next_page`

This commit is contained in:
neilang 2015-04-27 18:56:51 +10:00 committed by Akira Matsuda
parent bb3631aa83
commit cbf1e35ecf
1 changed files with 9 additions and 0 deletions

View File

@ -203,6 +203,15 @@ Run the following generator command, then edit the generated file.
<%= rel_next_prev_link_tags @users %>
This renders the rel next and prev link tags for the head.
* the +path_to_next_page+ helper method
<%= path_to_next_page @users %>
This returns the server relative path to the next page.
* the +path_to_prev_page+ helper method
<%= path_to_prev_page @users %>
This returns the server relative path to the previous page.
=== I18n and labels