1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
This commit is contained in:
Akira Matsuda 2012-09-03 03:05:08 +09:00
parent 90c3f6eda6
commit 7015670210

View file

@ -23,7 +23,7 @@ windows #154 [cbeer]
* Added `link_to_next_page` helper method that simply links to the next page
Example:
<%= link_to_next_page @posts, 'More' %>
#=> <a href="/posts?page=7" rel="next">More</a>
#=> <a href="/posts?page=7" rel="next">More</a>
* Let one override the `rel` attribute for 'link_to_next_page` helper #177
[webmat]
@ -33,7 +33,7 @@ RSolr #141 [samdalton]
* Changed `Kaminari.paginate_array` API to take a Hash `options`
And specifying :limit & :offset immediately builds a pagination ready object
Example:
Example:
# the following two are equivalent. Use whichever you like
Kaminari.paginate_array((1..100).to_a, limit: 10, offset: 10)
Kaminari.paginate_array((1..100).to_a).page(2).per(10)
@ -45,8 +45,8 @@ RSolr #141 [samdalton]
* Made the pagination method name (defaulted to `page`) configurable #57, #162
Example:
# you can use the config file and its generator for this
Kaminari.config.page_method_name = :paging
Article.paging(3).per(30)
Kaminari.config.page_method_name = :paging
Article.paging(3).per(30)
* Only add extensions to direct descendents of ActiveRecord::Base #108
[seejohnrun]
@ -193,10 +193,10 @@ from ActiveRecord::Base.inherited #34 [rolftimmermans]
* Moved the whole pagination logic to the paginator partial so that users can
touch it
Note: You need to update your _paginator.html.* if you've already customized
it. If you haven't overridden _paginator.html.* files, then probably
there're nothing you have to do.
See this commit for the example:
https://github.com/amatsuda/kaminari_themes/commit/2dfb41c
it. If you haven't overridden _paginator.html.* files, then probably
there're nothing you have to do.
See this commit for the example:
https://github.com/amatsuda/kaminari_themes/commit/2dfb41c
== 0.9.10
@ -210,8 +210,8 @@ touch it
* :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'}
Example:
= paginate @users, :params => {:controller => 'users', :action => 'index2'}
* refactor tags