title: Will_Paginate NoMethodError (undefined method `paginate'
body: <p>I'm trying to in the "will_paginate" gem however when I push it to Heroku, I get the following error message on the Heroku server. The solution works perfectly in my development in environment.    </p>
  
  <pre><code>2015-11-06T18:34:43.422821+00:00 app[web.1]: Processing by AccountsController#index as HTML
          2015-11-06T18:34:43.509289+00:00 app[web.1]: 
          2015-11-06T18:34:43.509292+00:00 app[web.1]: NoMethodError (undefined method `paginate' for #&lt;Account::ActiveRecord_Relation:0x007f39bc853bd8&gt;):
          2015-11-06T18:34:43.509293+00:00 app[web.1]:   app/controllers/accounts_controller.rb:8:in `index'
          2015-11-06T18:34:43.509294+00:00 app[web.1]: 
          2015-11-06T18:34:43.509295+00:00 app[web.1]: 
  </code></pre>
  
  <p>Accounts Controller:</p>
  
  <pre><code>class AccountsController &lt; ApplicationController
    before_action :authenticate_user!
    before_action :set_account, only: [:show, :edit, :update, :destroy]
  
    respond_to :html
  
    def index
      @account = Account.all.order("created_at DESC").paginate(:page =&gt; params[:page], :per_page =&gt; 8)
    end
  
    def show
      @notes = Note.where(account_id: @account.id) #Where a note belong to the current account
    end
  
    def new
      @account = Account.new
      respond_with(@account)
    end
  
    def edit
    end
  
    def create
      @account = Account.new(account_params)
      @account.save
      respond_with(@account)
    end
  
    def update
      @account.update(account_params)
      respond_with(@account)
    end
  
    def destroy
      @account.destroy
      respond_with(@account)
    end
  
    private
      def set_account
        @account = Account.find(params[:id])
      end
  
      def account_params
        params.require(:account).permit(:first_name, :last_name, :return_client, :program_id, :insurance_id, :address, :phone)
      end
  end
  </code></pre>
  
  <p>Index.html.erb</p>
  
  <pre><code>&lt;br&gt;
  &lt;%= will_paginate @account , renderer: BootstrapPagination::Rails %&gt;
  &lt;br&gt;
  &lt;%= link_to 'Add Client', new_account_path %&gt;
  </code></pre>
  
  <p>Gem File
   source '<a href="http://rubygems.org" rel="nofollow">http://rubygems.org</a>'</p>
  
  <pre><code>ruby '2.1.5'
  gem 'rails', '4.1.8'
  gem 'sqlite3', group: :development
  gem 'sass-rails', '~&gt; 4.0.3'
  gem 'uglifier', '&gt;= 1.3.0'
  gem 'coffee-rails', '~&gt; 4.0.0'
  gem 'jquery-rails'
  gem 'turbolinks'
  gem 'jbuilder', '~&gt; 2.0'
  gem 'sdoc', '~&gt; 0.4.0',          group: :doc
  gem 'rails_12factor', group: :production
  gem 'pg', group: :production
  gem 'carrierwave'
  gem "fog"
  gem "figaro"
  gem 'tzinfo-data', platforms: [:mingw, :mswin]
  gem 'execjs'
  gem "mini_magick"
  gem 'devise'
  gem 'searchkick'
  group :development, :test do
    gem 'rspec-rails', '~&gt; 3.0'
    gem 'will_paginate', '~&gt; 3.0'
    gem 'will_paginate-bootstrap'
  end
  </code></pre>
  
  <p>Then gem env is the same on both servers. I'm not sure what the problem is.</p>