From fb7241e16d4cb4ba3ec9a7f8e13e2b275026c689 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sun, 13 Feb 2011 18:46:55 +0900 Subject: [PATCH] documentation --- CHANGELOG | 9 +++++++++ README.rdoc | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index b6bde3785..b5a31b128 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/README.rdoc b/README.rdoc index 4f2a4dc62..69e300897 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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 %>