Usually a select menu is used for setting a belongs_to association, but in this episode I will show you how to use a text field with auto completion.

Read more at the source