我正在尝试在jquery-ui-rails gem 的帮助下将 jquery ui datepicker 添加到我的应用程序中。我检查了Railscast我似乎做的一切都是正确的,但是在应用程序启动时我得到一个错误
couldn't find file 'jquery.ui.all'
Gemfile(最后,尝试将 gem 包含在资产组中,但没有运气):
gem 'backbone-on-rails'
gem "jquery-ui-rails"
应用程序.js
//= require jquery
//= require jquery_ujs
//= require underscore
//= require backbone
//= require svitla_test
//= require_tree ../templates
//= require_tree ./models
//= require_tree ./collections
//= require_tree ./views
//= require_tree ./routers
//= require_tree .
//= require jquery.ui.all
应用程序.css
*= require jquery.ui.all
*= require_self
*= require_tree .