title: will_paginate undefined method `total_pages'
body: <p>What am I missing here? I am using the haml_scaffold generator and the pages work fine with will_paginate. When I start tinkering I end up with this 'total_pages' error and I'm not sure what I am doing that is causing it. Anyone have any insight? 
  I'm using mislav-will_paginate 2.3.11.</p>
  
  <pre><code>mike@jauntyjackalope:~/project$ script/console
  Loading development environment (Rails 2.3.4)
  &gt;&gt; @locations = Location.find_all_by_city("springfield")
  =&gt; [#&lt;Location id: 3, address: "123 Main St", city: "springfield", phone: "321-1234", business_id: 2&gt;]
  &gt;&gt; @locations.class
  =&gt; Array
  &gt;&gt; @locations.collect{|loc| loc.business}
  =&gt; [#&lt;Business id: 2, name: "A Bar", website: "www.abar.com", business_owner_id: 1, created_at: "2009-08-31 21:13:10", updated_at: "2009-08-31 21:13:10"&gt;]
  &gt;&gt; @locations.class
  =&gt; Array
  &gt;&gt; @locations.paginate(:page =&gt; 1, :per_page =&gt; 2)
  =&gt; [#&lt;Location id: 3, address: "123 Main St", city: "springfield", phone: "321-1234", business_id: 2&gt;]
  &gt;&gt; helper.will_paginate(@locations)
  NoMethodError: undefined method `total_pages' for #&lt;Array:0xb6f83bc4&gt;
   from /var/lib/gems/1.8/gems/mislav-will_paginate-2.3.11/lib/will_paginate/view_helpers.rb:197:in `total_pages_for_collection'
   from /var/lib/gems/1.8/gems/mislav-will_paginate-2.3.11/lib/will_paginate/view_helpers.rb:98:in `will_paginate'
   from (irb):7
  
  &gt;&gt; y @locations
  --- 
  - !ruby/object:Location 
    attributes: 
      city: springfield
      business_id: "2"
      id: "3"
      phone: 321-1234
      address: 123 Main St
    attributes_cache: {}
  
    business: !ruby/object:Business 
      attributes: 
        name: A Bar
        updated_at: 2009-08-31 21:13:10
        website: www.abar.com
        id: "2"
        created_at: 2009-08-31 21:13:10
        business_owner_id: "1"
      attributes_cache: {}
  
  =&gt; nil
  &gt;&gt; 
  </code></pre>