Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  17] [ 5]  / answers: 1 / hits: 48038  / 11 Years ago, wed, july 24, 2013, 12:00:00

I am getting the following error even if I have jquery-ui in my application.js file



couldn't find file 'jquery-ui'
(in /home/jeff/work/projects/a/media/app/assets/javascripts/application.js:14)



application.js



//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require jquery.validate.min


Can anybody help me?


More From » jquery

 Answers
22

Use specific version of gem jquery-rails, ~> 2.3.0 as later version of gem has deleted the ui part.



or



you can use gem jquery-ui-rails for jquery-ui . For more information please visit the git repository



To require all jQuery UI modules, add the following to your application.js:



for version 5.0 and more it has been changed. Please follow the link



application.js:



//= require jquery-ui


application.css:



/*
*= require jquery-ui
*/


For lesser version than 5.0 we need to write below format



application.js:



//= require jquery.ui.all


Also add the jQuery UI CSS to your application.css:



application.css:



/*
*= require jquery.ui.all
*/


Hope this could help you


[#76787] Tuesday, July 23, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lucianom

Total Points: 601
Total Questions: 98
Total Answers: 109

Location: Kenya
Member since Fri, Dec 23, 2022
1 Year ago
lucianom questions
Tue, Feb 22, 22, 00:00, 2 Years ago
Wed, May 5, 21, 00:00, 3 Years ago
Sun, Jan 24, 21, 00:00, 3 Years ago
Sat, Aug 15, 20, 00:00, 4 Years ago
Mon, Jun 22, 20, 00:00, 4 Years ago
;