Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
release v2.3.16 with i18n support
[ci skip]
  • Loading branch information
mislav committed Aug 9, 2011
1 parent f6d5567 commit 43d160b
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 110 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rdoc
@@ -1,4 +1,4 @@
= 2.3.16
= 2.3.16, released 2011-08-09

* added global <tt>WillPaginate.per_page = 30</tt> setting
* added i18n capabilities to previous/next labels and page_entries_info
Expand Down
53 changes: 53 additions & 0 deletions README.md
@@ -0,0 +1,53 @@
# will_paginate

will_paginate v2.3 is a pagination plugin for Rails and Active Record.

Installation:

~~~ ruby
## environment.rb
Rails::Initializer.run do |config|
config.gem 'will_paginate', :version => '~> 2.3.16'
end
~~~

See [installation instructions][install] on the wiki for more info.


## Basic will_paginate use

~~~ ruby
## perform a paginated query:
@posts = Post.paginate(:page => params[:page])

# or, use an explicit "per page" limit:
Post.paginate(:page => params[:page], :per_page => 30)

## render page links in the view:
<%= will_paginate @posts %>
~~~
And that's it! You're done. You just need to add some CSS styles to [make those pagination links prettier][css].
You can customize the default "per_page" value:
~~~ ruby
# for the Post model
class Post
self.per_page = 10
end
# set per_page globally
WillPaginate.per_page = 10
~~~
See [the wiki][wiki] for more documentation. [Ask on the group][group] if you have usage questions. [Report bugs][issues] on GitHub.
Happy paginating.
[wiki]: https://github.com/mislav/will_paginate/wiki
[install]: https://github.com/mislav/will_paginate/wiki/Installation "will_paginate installation"
[group]: http://groups.google.com/group/will_paginate "will_paginate discussion and support group"
[issues]: https://github.com/mislav/will_paginate/issues
[css]: http://mislav.uniqpath.com/will_paginate/
103 changes: 0 additions & 103 deletions README.rdoc

This file was deleted.

2 changes: 1 addition & 1 deletion lib/will_paginate/version.rb
Expand Up @@ -2,7 +2,7 @@ module WillPaginate
module VERSION
MAJOR = 2
MINOR = 3
TINY = 15
TINY = 16

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
10 changes: 5 additions & 5 deletions will_paginate.gemspec
Expand Up @@ -5,15 +5,15 @@ Gem::Specification.new do |gem|
gem.name = 'will_paginate'
gem.version = WillPaginate::VERSION::STRING

gem.summary = "Pagination for Rails"
gem.description = "The will_paginate library provides a simple, yet powerful and extensible API for ActiveRecord pagination and rendering of pagination links in ActionView templates."
gem.summary = "Easy pagination for Rails"
gem.description = "will_paginate provides a simple API for Active Record pagination and rendering of pagination links in Rails templates."

gem.authors = ['Mislav Marohnić', 'PJ Hyett']
gem.email = 'mislav.marohnic@gmail.com'
gem.homepage = 'http://github.com/mislav/will_paginate/wikis'
gem.homepage = 'https://github.com/mislav/will_paginate/wiki'

gem.rdoc_options = ['--main', 'README.rdoc', '--charset=UTF-8']
gem.extra_rdoc_files = ['README.rdoc', 'LICENSE', 'CHANGELOG.rdoc']
gem.rdoc_options = ['--main', 'README.md', '--charset=UTF-8']
gem.extra_rdoc_files = ['README.md', 'LICENSE', 'CHANGELOG.rdoc']

gem.files = Dir['Rakefile', '{bin,lib,rails,test,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files -z`.split("\0")
end

0 comments on commit 43d160b

Please sign in to comment.