Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


paginate_by_sql does not initialize pagenum #187

robvandijk opened this Issue · 0 comments

2 participants

Rob van Dijk Mislav Marohnić
Rob van Dijk

The paginate/page methods initialize pagenum if it is nil via the following:

        pagenum = ::WillPaginate::PageNumber(num.nil? ? 1 : num)

The paginate_by_sql leaves the page number untouched, leading to an error when trying to convert nil to an integer in PageNumber - initialize:

      value = Integer(value)
Mislav Marohnić mislav closed this in 9bd5aec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.