Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (27 sloc) 1.45 kb
4ca58bb @mislav add CHANGELOG covering the 2.2.0 release
authored
1 == 2.2.0, released 2008-04-07
2
3 === API changes
4 * Rename WillPaginate::Collection#page_count to "total_pages" for consistency.
5 If you implemented this interface, change your implementation accordingly.
6 * Remove old, deprecated style of calling Array#paginate as "paginate(page,
7 per_page)". If you want to specify :page, :per_page or :total_entries, use a
8 parameter hash.
9 * Rename LinkRenderer#url_options to "url_for" and drastically optimize it
10
11 === View changes
12 * Added "prev_page" and "next_page" CSS classes on previous/next page buttons
13 * Add examples of pagination links styling in "examples/index.html"
14 * Change gap in pagination links from "..." to
15 "<span class="gap">&hellip;</span>".
16 * Add "paginated_section", a block helper that renders pagination both above and
17 below content in the block
18 * Add rel="prev|next|start" to page links
19
20 === Other
21
22 * Add ability to opt-in for Rails 2.1 feature "named_scope" by calling
23 WillPaginate.enable_named_scope (tested in Rails 1.2.6 and 2.0.2)
24 * Support complex page parameters like "developers[page]"
25 * Move Array#paginate definition to will_paginate/array.rb. You can now easily
26 use pagination on arrays outside of Rails:
27
28 gem 'will_paginate'
29 require 'will_paginate/array'
30
31 * Add "paginated_each" method for iterating through every record by loading only
32 one page of records at the time
33 * Rails 2: Rescue from WillPaginate::InvalidPage error with 404 Not Found by default
Something went wrong with that request. Please try again.