title: Rails 3 & Kaminari pagination problem
body: <p>Ok so I have decided to use Kaminari for pagination in a rails 3 project.  I have followed the video from RailsCasts <a href="http://railscasts.com/episodes/254-pagination-with-kaminari" rel="nofollow">http://railscasts.com/episodes/254-pagination-with-kaminari</a></p>
  
  <p>All goes well up until the point or running the server.</p>
  
  <p><strong>controllers/stories_controller.rb</strong></p>
  
  <pre><code>def index
     @stories = Story.all
     @pages = Story.page(params[:page]).per(3)
     @stories = Story.search(params[:search]) 
  end
  </code></pre>
  
  <p><strong>views/stories/index.html.erb</strong></p>
  
  <pre><code>&lt;%= paginate @pages %&gt;
  </code></pre>
  
  <p>When i start the server the index page in question displays <strong>all</strong> the stories from the DB and renders the pagination view showing (1 2 Next > Last »).  What am I missing to get the pagination working?</p>