public
Rubygem
Fork of mislav/will_paginate
Description: Most awesome pagination solution for Rails
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/github/will_paginate.git
release 2.3.0
mislav (author)
Tue Apr 29 13:13:24 -0700 2008
commit  87d3d8df099b08e3b5d81a5aaa1064325a7edbca
tree    0bdd03cdc42004baf19c31d0123796fb08eca4cf
parent  2e45f01bd13fae007412896335d266983e11ec03
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
0
@@ -1,3 +1,18 @@
0
+== 2.3.0, released 2008-04-29
0
+
0
+* Changed LinkRenderer to receive collection, options and reference to view template NOT in
0
+ constructor, but with the #prepare method. This is a step towards supporting passing of
0
+ LinkRenderer (or subclass) instances that may be preconfigured in some way
0
+* LinkRenderer now has #page_link and #page_span methods for easier customization of output in
0
+ subclasses
0
+* Changed page_entries_info() method to adjust its output according to humanized class name of
0
+ collection items. Override this with :entry_name parameter (singular).
0
+
0
+ page_entries_info(@posts)
0
+ #-> "Displaying all 12 posts"
0
+ page_entries_info(@posts, :entry_name => 'item')
0
+ #-> "Displaying all 12 items"
0
+
0
 == 2.2.3, released 2008-04-26
0
 
0
 * will_paginate gem is no longer published on RubyForge, but on
...
113
114
115
116
 
117
118
119
...
113
114
115
 
116
117
118
119
0
@@ -113,7 +113,7 @@ contributions or just simply awesome ideas:
0
 Chris Wanstrath, Dr. Nic Williams, K. Adam Christensen, Mike Garey, Bence
0
 Golda, Matt Aimonetti, Charles Brian Quinn, Desi McAdam, James Coglan, Matijs
0
 van Zuijlen, Maria, Brendan Ribera, Todd Willey, Bryan Helmkamp, Jan Berkel,
0
-Lourens Naudé, Rick Olson, Russell Norris.
0
+Lourens Naudé, Rick Olson, Russell Norris, Piotr Usewicz, Chris Eppstein.
0
 
0
 
0
 == Usable pagination in the UI
...
1
2
3
4
5
 
 
6
7
8
...
1
2
3
 
 
4
5
6
7
8
0
@@ -1,8 +1,8 @@
0
 module WillPaginate #:nodoc:
0
   module VERSION #:nodoc:
0
     MAJOR = 2
0
- MINOR = 2
0
- TINY = 3
0
+ MINOR = 3
0
+ TINY = 0
0
 
0
     STRING = [MAJOR, MINOR, TINY].join('.')
0
   end
...
139
140
141
142
 
 
 
 
 
 
 
 
143
144
145
...
139
140
141
 
142
143
144
145
146
147
148
149
150
151
152
0
@@ -139,7 +139,14 @@ module WillPaginate
0
     # You can use this as a blueprint for your own, similar helpers.
0
     #
0
     # <%= page_entries_info @posts %>
0
- # #-> Displaying entries 6 - 10 of 26 in total
0
+ # #-> Displaying posts 6 - 10 of 26 in total
0
+ #
0
+ # By default, the message will use the humanized class name of objects
0
+ # in collection: for instance, "project types" for ProjectType models.
0
+ # Override this to your liking with the <tt>:entry_name</tt> parameter:
0
+ #
0
+ # <%= page_entries_info @posts, :entry_name => 'item' %>
0
+ # #-> Displaying items 6 - 10 of 26 in total
0
     def page_entries_info(collection, options = {})
0
       entry_name = options[:entry_name] ||
0
         (collection.empty?? 'entry' : collection.first.class.name.underscore.sub('_', ' '))
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 Gem::Specification.new do |s|
0
   s.name = 'will_paginate'
0
- s.version = '2.2.3'
0
+ s.version = '2.3.0'
0
   s.date = '2008-04-26'
0
   
0
   s.summary = "Most awesome pagination solution for Rails"

Comments

    No one has commented yet.