title: 1railstutorial.org 10.3.3 Pagination error?
body: <pre><code>&gt;&gt; User.all.class
  =&gt; Array
  &gt;&gt; User.paginate(:page =&gt; 1).class
  TypeError: can't convert nil into Array
  </code></pre>
  
  <p>not work, but </p>
  
  <pre><code>&gt;&gt; User.all.class
  =&gt; Array
  &gt;&gt; User.all.paginate(:page =&gt; 1).class
  =&gt; WillPaginate::Collection
  </code></pre>
  
  <p>seems OK and</p>
  
  <pre><code>  def index
      @title = "All users"
      @users = User.all.paginate(:page =&gt; params[:page])
    end
  </code></pre>
  
  <p>this right?</p>