1

Version Rails 5 beta 3. I am using gem jquery-ui-rails 5.0.5

gemfile

group :assets do 
  # Use SCSS for stylesheets
  gem 'sass-rails', '~> 5.0'
  # Use Uglifier as compressor for JavaScript assets
  gem 'uglifier', '>= 1.3.0'
  # Use CoffeeScript for .coffee assets and views
  gem 'coffee-rails', '~> 4.1.0'
  gem 'jquery-ui-rails'  
end

application.js:

//= require turbolinks
//= require jquery
//= require jquery-ui/datepicker
//= require jquery_ujs
//= require jquery.turbolinks
//= require cocoon
//= require jquery_nested_form
//= require jquery-fileupload/basic

application.css

/**
 * application.css
 *
 *= require jquery-ui/datepicker
 *= require_self
 *= require_tree ./all
*/

I installed all gems, restarted server, run project and displaying error: couldn't find file 'jquery-ui/datepicker' with type 'text/css'

Help, please.

Stefan Hansch
  • 1,550
  • 4
  • 22
  • 55
  • File names have changed in jquery-ui-rails 5 - use //= require jquery-ui/all instead – Navneet Apr 17 '16 at 10:11
  • i changet to /all, now display couldn't find file 'jquery-ui/all' – Stefan Hansch Apr 17 '16 at 10:14
  • 6
    I haven't used RoR 5 (yet), but `group :assets` block [was dropped in RoR 4](http://stackoverflow.com/questions/36387206/twitter-bootstrap-rails-does-it-install-bootstrap-into-a-project/36387532#36387532). I doubt they returned it. – Vucko Apr 17 '16 at 10:16
  • thank you. i deleted assets group, now without error – Stefan Hansch Apr 17 '16 at 10:41

1 Answers1

1

As of Rails 4 the :assets group in the Gemfile is no longer loaded.

It previously existed to avoid unwanted compile on demand - when the assets pipeline was redesigned it was no longer needed.

Just remove the group :assets block surrounding the gems.

max
  • 96,212
  • 14
  • 104
  • 165