Problem with jquery-ui-rails Asterisks :: FileNotFound

Problem trying to use jquery-ui-rails autocomplete. (Stars :: FileNotFound)

Error:

ActionView::Template::Error (couldn't find file 'jquery-ui/autocomplete'

Application.js:

//= require jquery
//= require jquery_ujs
//= require jquery-ui/autocomplete
//= require turbolinks
//= require bootstrap
//= require_tree .

Application.css:

 *= require_tree .
 *= require_self
 *= require jquery-ui/autocomplete

My gemfile:

gem 'jquery-ui-rails'

I held a bunch. I have version 5.0.0 jquery-ui-rails. I restarted the server. I do not know what else to try. I do not understand why this is not working? Rails 4.1.1 / Ruby 2.1

I use RubyMine, so I can click + click on the file, and that is where it will be. Any ideas what else I can try? Thank!

+4
source share
1 answer

I fixed it. The problem was what I defined 'jquery-ui-rails'in my gemfile before 'jquery-rails'

Gemfile procedure is very important!

gem 'jquery-rails'
gem 'jquery-ui-rails'

. !:)

+3

Source: https://habr.com/ru/post/1547335/


All Articles