Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue where paginate method was not working in Rails 3

  • Loading branch information...
commit 9e9caf7aa40b996f92e25df6883f069543c611d4 1 parent 1eadaa3
@josegonzalez josegonzalez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dm-pager/helpers/rails.rb
View
2  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 = controller.url_for controller.params.merge(options[:params] || {})
collection.pager.to_html uri, options
end
Please sign in to comment.
Something went wrong with that request. Please try again.