crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3
http://rubygems.org/gems/rails3-jquery-autocomplete
MIT License
921 stars 368 forks source link

nothing is happening. #104

Open ilankasan opened 12 years ago

ilankasan commented 12 years ago

I followed the example one by one and nothing is happening when typing data in the field. Any advice?

aboehrnsen commented 12 years ago

I had the same problem.... and solved it by including JQuery UI.

Imo it should be mentioned as a requirement or be included in the source...

lucasmcastro commented 12 years ago

in order to make Jquery UI works properly you should use

//= require jquery-ui

(with a dash 'cause underline wont work) font: https://github.com/rails/jquery-rails

ilankasan commented 12 years ago

i am using rails 3.0.3. Does thi still apply? where do i define //= require jquery-ui

aboehrnsen commented 12 years ago

the

//= require jquery-ui

only applies to Rails 3.1.x and its new asset pipeline. For Rails < 3.1 you need to include jquery ui yourself... (most likely in your layout file)

ilankasan commented 12 years ago

Thanks. I included the libraries and some of the error message went away but still nothing happens. i also notice the request never gets tot he controller nor sent from the browser. Any more suggestions?

aboehrnsen commented 12 years ago

@ilankasan could you solve your problem or did you finally give up :) ? Please let me know if there is still something I can help you with.