我正在尝试将jquery-atwho-rails添加到我的应用中,这是at.js的rails gem,我按照说明运行bundle install
,将所需的代码添加到{ {1}}和application.js
,停止并重新启动服务器,但我始终收到此错误:
application.css
我无法弄清楚如何修复此错误,有人可以帮我解决这个问题吗?提前谢谢。
的Gemfile
couldn't find file 'jquery.atwho'
的application.js
gem 'rails', '3.2.13'
gem 'jquery-rails', '~> 2.3.0'
gem 'simple_form'
gem 'devise'
gem 'paperclip'
gem 'acts_as_follower', '~> 0.1.1'
gem 'js-routes'
gem 'acts-as-taggable-on', '~> 2.4.1'
gem 'aws-sdk', '< 2.0'
gem 'will_paginate'
gem 'bootstrap-will_paginate'
gem 'acts_as_votable', '~> 0.8.0'
gem 'rinku'
gem 'sunspot_rails'
gem 'progress_bar'
gem 'swf_fu', '~> 2.0'
gem 'delayed_job_active_record'
gem 'auto_html'
gem 'mailboxer'
gem 'remotipart', '~> 1.2'
gem 'private_pub'
gem 'thin'
gem 'activeadmin'
gem 'randumb'
gem 'figaro'
gem "auto_strip_attributes", "~> 2.0"
gem "font-awesome-rails"
gem "wysiwyg-rails"
gem 'rails_engine_decorators'
gem 'jquery-atwho-rails'
group :development, :test do
gem 'shoulda'
gem 'factory_girl_rails'
gem 'sqlite3'
gem 'sunspot_solr'
gem 'debugger'
end
group :production do
gem 'pg'
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
application.css
//= require jquery
//= require jquery_ujs
//= require js-routes
//= require swf_fu
//= require soundmanager2-nodebug
//= require jquery.remotipart
//= require private_pub
//= require froala_editor.min.js
//= require plugins/lists.min.js
//= require plugins/char_counter.min.js
//= require plugins/fullscreen.min.js
//= require jquery.atwho
//= require_tree .
答案 0 :(得分:0)
我不知道宝石是否存在问题,但我最终将其卸载并将jquery.atwho.js
,jquery.atwho.css
和caret.js
直接添加到我的资产中一切都开始发挥作用了。