Permalink
Browse files

Merge pull request #33 from josegonzalez/master

Updated paginate Helper for usage in Rails 3
  • Loading branch information...
2 parents 1eadaa3 + bfca04e commit a9d422530e31f91f12c4612093e09419c5b332cd @kyledrake kyledrake committed Jul 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dm-pager/helpers/rails.rb
@@ -10,7 +10,7 @@ module DataMapper::Pagination::Helpers::Rails
# :size Number of intermediate page number links to be shown; Defaults to 7
def paginate collection, options = {}
- uri = @template.url_for @template.params.merge(options[:params] || {})
+ uri = options[:uri] || controller.url_for(controller.params.merge(options[:params] || {}))
collection.pager.to_html uri, options
end

0 comments on commit a9d4225

Please sign in to comment.