paginate_by_sql does not initialize pagenum #187

Closed
robvandijk opened this Issue Sep 27, 2011 · 0 comments

2 participants

@robvandijk

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 mislav closed this in 9bd5aec Sep 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment