当我尝试包含jquery.ui.all时出错。所有工作完全适用于我重新启动计算机,但现在我有这个错误:
couldn't find file 'jquery.ui.all'
我重新启动了我的服务器,我尝试从Rails控制台和导航器清除缓存,但我仍然遇到问题。我还试图删除Gemfile.lock并运行bundle install
但仍然是同样的错误。
这里是我的application.js和application.css:
//= require ./plugins/jquery-1.10.2.min
//= require jquery_ujs
//= require fullcalendar
//= require jquery.ui.all
//= require ./plugins/jquery-migrate-1.2.1.min
//= require ./plugins/bootstrap/js/bootstrap.min
//= require turbolinks
//= require underscore-min
//= require gmaps_google
*= require_self
*
* CSS Global Compulsory
*= require ./plugins/bootstrap/css/bootstrap.min
*= require style
*
* CSS Implementing Plugins
*= require ./plugins/line-icons/line-icons
*= require ./plugins/font-awesome/css/font-awesome.min
*= require ./plugins/flexslider/flexslider
*= require ./plugins/bxslider/jquery.bxslider
*= require ./plugins/layer_slider/css/layerslider
*= require ./plugins/hover-effect/css/custom-hover-effects
*= require ./plugins/sky-forms/version-2.0.1/css/custom-sky-forms
*
* CSS Theme
*= require ./themes/orange.css
*
* CSS Customization
*= require custom
*= require fullcalendar
*= require jquery.ui.all
*/
我的Gemfile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use mysql2 as the database for Active Record
gem "mysql2", "~> 0.3.15"
# gem "mysql2", "0.3.11"
# Use PostgreSql at the database for Active Record
gem "pg"
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'jquery-ui-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Bundle Pagination
gem 'will_paginate', '~> 3.0'
gem 'will_paginate-bootstrap'
# Authentification, Authorize, Roling
gem 'omniauth'
gem 'devise'
gem 'omniauth-google-oauth2'
gem 'cancan'
gem 'rolify', :git => "git://github.com/EppO/rolify.git"
# Géolocalisation
gem 'geocoder'
gem 'gmaps4rails'
# API Builder
gem 'rabl'
# Json Parser
gem 'oj'
# Upload de Fichier
gem "paperclip", "~> 4.1"
# Fullcalendar
gem 'fullcalendar-rails'
答案 0 :(得分:1)
好的,我发现了问题,
问题来自gem jquery-ui-rails的更新。包括的是:
jquery.ui.all
现在:
jquery-ui
希望它能为我带来帮助