javascript - Sprockets::FileNotFound in Roles#index couldn't find file 'jquery' -


i'm upgrading rails application rails 3.2 4.2.0.rc2. while trying run application got this.

screenshot of page

gem file

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' 

gemfile.lock

jquery-datatables-rails (3.1.1)       actionpack (>= 3.1)       jquery-rails       railties (>= 3.1)       sass-rails     jquery-rails (4.0.0)       rails-dom-testing (~> 1.0)       railties (>= 4.2.0.beta, < 5.0)       thor (>= 0.14, < 2.0)     jquery-ui-rails (5.0.3)       railties (>= 3.2.16) 

app/views/layouts/application.html.erb

<!doctype html> <html> <head>     <title>work room</title>   <%= stylesheet_link_tag    "application", :media => "all" %>   <%= javascript_include_tag "application" %> <%#= javascript_include_tag "tinymce.min" %> <%#= javascript_include_tag 'ckeditor/ckeditor.js' %>      <%= puts "log" %>     <%= puts flash[:error_text] %>   <% if flash[:error_text] %>   <script type="text/javascript" >     //window.alert("you don't have permission 'edit/delete' comment");     window.alert('<%= flash[:error_text] %>'); </script> <% end %>  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>   <%= csrf_meta_tags %> </head> <body>  <%= yield %>  </body> </html> 

app/controllers/roles_controller.rb

class rolescontroller < applicationcontroller   # /roles   # /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 |format|       format.html # index.html.erb       format.json { render json: @roles }     end   end    # /roles/1   # /roles/1.json   def show   ...   ... end 

application.js

.... //= require jquery //= require jquery-ui //= require jquery_ujs //= require_tree . //= require tinymce.min .... 

by blogging have tried many solutions problem.

if remove

//= require jquery //= require jquery-ui //= require jquery_ujs 

these application.js application running. need jquery manipulations.

i need solve problem.

thank in advance...

i remove gemfile.lock using terminal.

rm gemfile.lock 

and bundle install

it worked me don't know why works.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -