title: Dynamic Autocompletion in Rails, using the jQuery TokenInput Plugin
body: <p>I'm using the great TokenInput plugin (<a href="http://loopj.com/jquery-tokeninput/" rel="nofollow">http://loopj.com/jquery-tokeninput/</a>) for rails to do some autocompletion and for a normal set of data in a model it works just wonderfully. But my problem is, that in my case I have actually 2 textboxes I want to use it on, and the suggestions for the second one should depend on the content of the first.
  More specifically: I need to select a football club (which I can just autocomplete out of all exisiting clubs in my database) and then the team that played. So the autocompletion for the team should only use the teams associated with the already selected club and I'm completely clueless about how or even if I can do that in rails and with this plugin (but the plugin itself shouldn't really be a hindrance).
  I guess my main problem here is my lack of experience with javascript, especially in combination with rails.
  Did anyone do something like that in his/her application and could help me?</p>