mislav/will_paginate — Issue #195: undefined method `total_pages' for #<Array:0xb3da36f4>
Author: railsfactory-dhibika
Created: 2011-11-07 10:02:23+00:00
State: open

In controller i have added the code

@partner_deals=(Partner.find_by_id(params[:id]).deals.reject{|x| x.deal_date>Date.today}).paginate(:page => params[:page],:per_page => 2)

i added require 'will_paginate/array' in controller

In view

<%= will_paginate @partner_deals %>

but the error "undefined method `total_pages' for #" shows