title: Sprockets::FileNotFound in Roles#index couldn't find file 'jquery'
body: <p>I'm upgrading a rails application from rails 3.2 to 4.2.0.rc2.
  While trying to run the Application I got this.</p>
  
  <p><img src="https://i.stack.imgur.com/6Ianc.png" alt="Screenshot of the page"></p>
  
  <p><strong>Gem File</strong></p>
  
  <pre><code>source 'https://rubygems.org'
  
  gem 'rails', '4.2.0.rc2'
  gem 'pg'
  gem 'net-ldap'
  gem "paperclip"
  gem 'cancan'
  gem "fastercsv"
  gem 'csv_importer'
  gem "httparty"
  gem 'json'
  gem 'will_paginate'
  gem 'pusher'
  gem 'tinymce-rails'
  gem 'rubyzip'
  gem 'rinku'
  gem 'activerecord-session_store'
  gem 'sass-rails'
  gem 'coffee-rails'
  gem 'uglifier'
  gem 'jquery-datatables-rails'
  gem 'jquery-rails'
  gem 'rufus-scheduler'
  gem "sprockets"
  gem 'jquery-ui-rails'
  gem 'newrelic_rpm'
  </code></pre>
  
  <p><strong>gemfile.lock</strong></p>
  
  <pre><code>jquery-datatables-rails (3.1.1)
        actionpack (&gt;= 3.1)
        jquery-rails
        railties (&gt;= 3.1)
        sass-rails
      jquery-rails (4.0.0)
        rails-dom-testing (~&gt; 1.0)
        railties (&gt;= 4.2.0.beta, &lt; 5.0)
        thor (&gt;= 0.14, &lt; 2.0)
      jquery-ui-rails (5.0.3)
        railties (&gt;= 3.2.16)
  </code></pre>
  
  <p><strong>app/views/layouts/application.html.erb</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
  
    &lt;title&gt;Work Room&lt;/title&gt;
    &lt;%= stylesheet_link_tag    "application", :media =&gt; "all" %&gt;
    &lt;%= javascript_include_tag "application" %&gt;
  &lt;%#= javascript_include_tag "tinymce.min" %&gt;
  &lt;%#= javascript_include_tag 'ckeditor/ckeditor.js' %&gt;
  
      &lt;%= puts "log" %&gt;
      &lt;%= puts flash[:error_text] %&gt;
    &lt;% if flash[:error_text] %&gt;
    &lt;script type="text/javascript" &gt;
      //window.alert("You don't have permission to 'Edit/Delete' this comment");
      window.alert('&lt;%= flash[:error_text] %&gt;');
  &lt;/script&gt;
  &lt;% end %&gt;
  
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt;
    &lt;%= csrf_meta_tags %&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;%= yield %&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>app/controllers/roles_controller.rb</strong></p>
  
  <pre><code>class RolesController &lt; ApplicationController
    # GET /roles
    # GET /roles.json
  
    before_action :require_login
    # load_and_authorize_resource
    load_and_authorize_resource except: [:create]
  
    def index
      @roles = Role.all.to_a
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @roles }
      end
    end
  
    # GET /roles/1
    # GET /roles/1.json
    def show
    ...
    ...
  end
  </code></pre>
  
  <p><strong>application.js</strong></p>
  
  <pre><code>....
  //= require jquery
  //= require jquery-ui
  //= require jquery_ujs
  //= require_tree .
  //= require tinymce.min
  ....
  </code></pre>
  
  <p>By blogging I have tried many solutions for this problem.</p>
  
  <p>If I remove</p>
  
  <pre><code>//= require jquery
  //= require jquery-ui
  //= require jquery_ujs
  </code></pre>
  
  <p>these from <strong>application.js</strong> the application is running. But I need <strong>JQuery</strong> to do some manipulations.</p>
  
  <p>I need some help to solve this problem.</p>
  
  <p>Thank You in Advance...</p>