javascript - How to install jQuery UI in Rails app? -


i want use jquery ui in rails app. have installed gem packages:

gem list |grep jquery jquery-rails (4.0.4) jquery-ui-rails (5.0.5) 

add below code /app/assets/javascripts/application.js:

//= require jquery //= require jquery_ujs //= require jquery.ui 

but doesn't work, error below:

showing /users/liuxin/public/my_blog/mongo_project/app/views/layouts/application.html.erb line #6 raised: couldn't find file 'jquery.ui' type 'application/javascript' 

hope can me , in advance!

rails version: rails 4.2.3

ruby version: ruby 2.2.2

try this:

//= require jquery //= require jquery_ui 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -