Reputation: 8831
I want to use jQuery UI in my rails app. I have installed the gem packages:
gem list |grep jquery
jquery-rails (4.0.4)
jquery-ui-rails (5.0.5)
add below code to /app/assets/javascripts/application.js
:
//= require jquery
//= require jquery_ujs
//= require jquery.ui
but doesn't work, the error as below:
Showing /Users/liuxin/Public/my_blog/mongo_project/app/views/layouts/application.html.erb where line #6 raised:
couldn't find file 'jquery.ui' with type 'application/javascript'
Hope someone can help me , thanks in advance!
rails version: Rails 4.2.3
ruby version: ruby 2.2.2
Upvotes: 0
Views: 641