Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Auto-Complete Association (revised)

#102 Auto-Complete Association (revised)

Nov 10, 2011 | 9 minutes | Ajax, Forms
A select menu is often used for setting a belongs_to association, but you should also consider using a text field with autocomple. Here I use jQuery UI and show two different solutions: client side and server side.
  • Download:
  • source codeProject Files in Zip (95.6 KB)
  • mp4Full Size H.264 Video (16.9 MB)
  • m4vSmaller H.264 Video (9.6 MB)
  • webmFull Size VP8 Video (11.9 MB)
  • ogvFull Size Theora Video (21.5 MB)