0

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'
Community
  • 1
  • 1
markhorrocks
  • 1,199
  • 19
  • 82
  • 151

1 Answers1

5

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'
Mike Szyndel
  • 10,461
  • 10
  • 47
  • 63
  • This repo does not have working rake autocomplete:install. It gives this to me: /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval' /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `
    ' to me :)
    – gorn Oct 15 '13 at 00:12
  • 1
    @gorn that installation step is for Rails 3.0, not Rails 4. – sevenseacat Oct 21 '13 at 06:41