Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Using the #total_pages method of LinkRendererBase also in LinkRenderer #249

Closed
wants to merge 1 commit into from

2 participants

Lars Schirrmeister Mislav Marohnić
Lars Schirrmeister

Helps to easily change the behavior of the view helper concerning the total pages to be shown.

Mislav Marohnić
Owner

Thanks! pulled

Mislav Marohnić mislav closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 4, 2012
  1. Lars Schirrmeister
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/will_paginate/view_helpers/link_renderer.rb
2  lib/will_paginate/view_helpers/link_renderer.rb
View
@@ -59,7 +59,7 @@ def previous_page
end
def next_page
- num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
+ num = @collection.current_page < total_pages && @collection.current_page + 1
previous_or_next_page(num, @options[:next_label], 'next_page')
end
Something went wrong with that request. Please try again.