title: can't convert nil into Array will_paginate
body: <p>Hello guys I am having problems with will_paginate in rails 3, I have this in my constroller </p>
  
  <pre><code>@posts = Post.paginate(:all,
    :include =&gt; [:author, :categories],
    :conditions=&gt;"status = 'published'", 
    :order=&gt;"blog_posts.created_at DESC",
    :per_page =&gt; 1, :page =&gt; params[:page])
  </code></pre>
  
  <p>and &lt;%= will_paginate @posts %> in my view, but I am getting this error can't convert nil into Array constantly.</p>
  
  <p>Can anyone help me ? </p>
  
  <p>Thanks in advance</p>