Topic: Help with JQuery Autocomplete with Rails3
I'm having difficulty setting up JQuery Autocomplete with Rails3. I don't get any errors, it just behaves like regular text box.
Here is what I have done:
First I installed autocomplete as explained here: http://github.com/crowdint/rails3-jquer ete#readme
I have a model class which contains the model which will be in the lookup:
class NdbFoodDesController < ApplicationController autocomplete :ndb_no, :long_desc ... some other functions end
Then I added the function in the routes file:
resources :ndb_food_des do get :autocomplete_ndb_no_long_desc, :on => :collection end
Then in the view form I have added these lines:
Is there something I'm doing wrong?