Sprockets::FileNotFound: couldn't find file 'jquery-ui'?

I'm writing a Rails project, and using rvm ruby-1.9.3-p362.

In my gemfile I have:

ruby 1.9.3
gem 'rails', '3.1.0' 
gem 'jquery-rails'
gem 'jquery-ui-rails'

I also do bundle install and restart the Rails server, but when I'm running it in the browser it gets a console error.

Sprockets::FileNotFound: couldn't find file 'jquery-ui'

How can I make it work?

Answers


To include the jquery-ui-rails assets in your CSS or JS manifest you need to call

In your application.js manifest

//= require jquery.ui.all

And in your application.css manifest

*= require jquery.ui.all

Need Your Help

HTML/JavaScript - How can I hide the links and cursor?

javascript jquery html css

I am working on a JavaScript/HTML template for my website however I am having trouble trying to figure out how to hide links and cursors when at different ID's.

Has anyone succeeded in installing Mono (the Linux .NET framework project) on the red hat enterprise?

linux mono

Has anyone succeeded in installing Mono (the Linux .NET framework project) on the red hat linux enterprise?