markhorrocks
markhorrocks

Reputation: 1418

Rails 4.0.0 Ruby 2.0 gem "rails3-jquery-autocomplete" error

I have encountered the following error when trying to use rails3-jquery-autocomplete:

Initially, I used the latest version of jquery-rails but read that they removed jquery-ui. I have tried downgrading jquery-rails to gem 'jquery-rails', '~> 2.3.0' as recommended in this answer but it did not work. rails active admin deployment : couldn't find file 'jquery-ui'

I also tried restarting my server as suggeste din this answer but did not work either. Asset Pipeline not finding JS file

I would greatly appreciate an explanation as to how to do this in rails 4 using jQuery mobile without the gem as I have no idea and can't find any recent resources.

couldn't find file 'autocomplete-rails'

application.js

//
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require autocomplete-rails
//= require jquery.mobile
//= require turbolinks
//= require_tree .

gemfile

gem 'rails', '4.0.0'
gem 'jquery-rails'
gem 'jquery_mobile_rails'
gem 'jquery-ui-rails'
gem 'rails3-jquery-autocomplete'

Upvotes: 0

Views: 3918

Answers (1)

Mike Szyndel
Mike Szyndel

Reputation: 10592

You can use this fork https://github.com/francisd/rails3-jquery-autocomplete

In your Gemfile change

gem 'rails3-jquery-autocomplete'

to

gem 'rails3-jquery-autocomplete', git: 'https://github.com/francisd/rails3-jquery-autocomplete'

Upvotes: 5

Related Questions