Rails サーバーの実行を開始するときに localhost:3000 に移動すると、このファイルが見つからないというエラーが発生します。私が得ているメッセージはですcouldn't find file 'jquery.effects.core'
。リポジトリからアプリの新しいクローンを取得することから、Rails と Ruby を再インストールすることまで、できることはほとんどすべて行いましたが、すべて同じエラーにつながります。何か案は?
Rails サーバーを実行すると、次の出力が得られます。
sudo rails s
=> Booting Thin
=> Rails 3.2.9 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
This poses a security threat. It is strongly recommended that you
provide a secret to prevent exploits that may be possible from crafted
cookies. This will not be supported in future versions of Rack, and
future versions will even invalidate your existing user cookies.
Called from: /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'.
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
ここに私のGemfileがあります
source 'https://rubygems.org'
gem 'rails', '3.2.9'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'rails_admin'
gem 'devise'
gem 'cancan'
gem 'simple_form'
gem 'kaminari'
gem 'bootstrap-kaminari-views'
gem 'recaptcha', :require => 'recaptcha/rails'
gem 'acts_as_commentable_with_threading'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
group :production do
gem 'thin'
end
gem 'libv8', '~> 3.11.8'
gem "therubyracer", '>= 0.11.0beta8', :require => 'v8'
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
gem "less-rails"
gem 'paperclip'
gem 'aws-sdk'
gem 'jquery-rails'
EDIT(解決済み):これが私のapplication.jsファイルです。行のコメントを外すと、すべてが機能するよう= require jquery
です。その行がコメントアウトされていても、この問題に遭遇しない同じソースコードのセットで作業している他の人がいるため、これを説明する方法がわかりません.
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery <----------------
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree .