I'm using https://github.com/crowdint/rails3-jquery-autocomplete with a rails 3 web application and I would like to have an autocompleted field based not only on what has been typed on that field but also on the value of other fields in the same form.
Here is an example :
class Country < ActiveRecord::Base
has_many :academic_titles_suggestions
end
class AcademicTitleSuggestion < ActiveRecord::Base
belongs_to :country
end
class People < ActiveRecord::Base
belongs_to :country
# has field a field academic_title:string
end
Now when I display the form for a People, I wanto a drop down list for the country and a suggest box for the academic title based on the academic title suggestions of that country
Do you have any suggestions on how to do that ?