I’m using auto_complete plugin:
https://github.com/crowdint/rails3-jquery-autocomplete
I have installed the gem and added require line in my manifest file as instructed:
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require autocomplete-rails
//= require prototype
//= require prototype_ujs
Having done just this, firebug gives me this error message:
$("input[data-autocomplete]") is null
and error is traced to this line in autocomplete-rails.js:
$(document).ready(function(){$("input[data-autocomplete]").railsAutocomplete()})...
I’m using:
Rails 3.1.0
Ruby 1.9.2
Has anyone experienced the same? I just installed and required the gem and not even started doing the changes to the controller / view.
Any help would be appreciated!
Do not use Prototype library at the same time with Jquery. Unfortunately this was only solution i could come up with. I tried noConflict statements and loading libraries in different order. I’m accepting this answer now, because there haven’t been any other solutions.