title: Having problems with my will_paginate after upgrading to Rails 3
body: <p>The problem is that I keep getting </p>
  
  <pre><code>NoMethodError (undefined method `paginate' for #&lt;Class:0x1e3dec0&gt;):
  activerecord (3.0.3) lib/active_record/base.rb:1008:in `method_missing'
  </code></pre>
  
  <p>Below is the code snippet I am including and any help in fixing my problem. I am using will_paginate-rails3 at the moment.  </p>
  
  <pre><code>def list
     @users = User.paginate :per_page =&gt; 10, :page =&gt; 1
  end
  </code></pre>
  
  <p>in <code>user_controller.rb</code></p>
  
  <p>and also</p>
  
  <pre><code>&lt;!-&lt;%= link_to 'Previous page', { :page =&gt; @users.previous_page } if @users.previous_page %&gt;--&gt;
  </code></pre>
  
  <p>in my <code>views.html</code>.</p>
  
  <p>Could someone please point me in the right direction?</p>