Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Feb 13, 2011
1 parent 6bfab14 commit fb7241e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
== 0.9.9

* :params option for the helper [yomukaku_memo]
You can override each link's url_for option by this option
Example:
= paginate @users, :params => {:controller => 'users', :action => 'index2'}

* refactor tags

== 0.9.8

* I18n for the partials
Expand Down
4 changes: 4 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ This would output something like 1 2 3 4 ...(snip)... 17 18 19 20 while having 2
This would output something like 1 ...(snip)... 18 19 20 while having 20 pages in total.
<%= paginate @users, :left => 0, :right => 2 %>

* extra parameters (:params) for the links
This would modify each link's url_option. :controller and :action would be the usual keys.
<%= paginate @users, :params => {:controller => 'foo', :action => 'bar'}

* Ajax links (crazy simple, but works perfectly!)
This would add data-remote="true" to all the links inside.
<%= paginate @users, :remote => true %>
Expand Down

0 comments on commit fb7241e

Please sign in to comment.