Skip to content
This repository
Browse code

Fixed issue where paginate method was not working in Rails 3

  • Loading branch information...
commit 9e9caf7aa40b996f92e25df6883f069543c611d4 1 parent 1eadaa3
Jose Diaz-Gonzalez josegonzalez authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/dm-pager/helpers/rails.rb
2  lib/dm-pager/helpers/rails.rb
@@ -10,7 +10,7 @@ module DataMapper::Pagination::Helpers::Rails
10 10 # :size Number of intermediate page number links to be shown; Defaults to 7
11 11
12 12 def paginate collection, options = {}
13   - uri = @template.url_for @template.params.merge(options[:params] || {})
  13 + uri = controller.url_for controller.params.merge(options[:params] || {})
14 14 collection.pager.to_html uri, options
15 15 end
16 16

0 comments on commit 9e9caf7

Please sign in to comment.
Something went wrong with that request. Please try again.