Oops, I meant 1

This commit is contained in:
Neil Lalonde 2014-02-25 12:19:22 -05:00
parent 7288bf1f31
commit b15e771d67

View File

@ -208,7 +208,7 @@ class ListController < ApplicationController
end end
def prev_page_params(opts = nil) def prev_page_params(opts = nil)
page_params(opts).merge(page: params[:page].to_i > 1 ? (params[:page].to_i - 1) : 0) page_params(opts).merge(page: params[:page].to_i > 1 ? (params[:page].to_i - 1) : 1)
end end