title: undefined local variable or method `scoped' for #<Listing::ActiveRecord_Relation:0x0000000725f718>
body: <p>I get this error when i did pagination (will_paginate) + rails 4. really dont understand what went wrong </p>
  
  <p>gem file </p>
  
  <pre><code>gem 'will_paginate', '~&gt; 3.0'
  </code></pre>
  
  <p>here is the controller </p>
  
  <pre><code>@users = User.where.not(:name =&gt; "admin").all
  @user_paginate = @users.paginate(:page =&gt; params[:page], :per_page =&gt; 3)
  </code></pre>
  
  <p>view</p>
  
  <pre><code>&lt;%= will_paginate @user_paginate %&gt;
  </code></pre>
  
  <p>application controller i did</p>
  
  <pre><code>require 'will_paginate/array'
  </code></pre>
  
  <p>model relations</p>
  
  <p>User <code>has_many :listings</code></p>
  
  <p>Listing <code>belongs_to :user</code></p>
  
  <p>any help will be appreciated thanks</p>