This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.
page_count()
Returns the number of pages in this paginator.
# File actionpack/lib/action_controller/pagination.rb, line 265 def page_count @page_count ||= @item_count.zero? ? 1 : (q,r=@item_count.divmod(@items_per_page); r==0? q : q+1) end