As always thanks for the fast & excellent answer
On Jan 21, 12:07 am, Carlos Antonio da Silva
<
carlosantoniodasi...@gmail.com> wrote:
> You have to map the collection to a pair of text and value attributes, ie
> an array containing the labe and the value for each option tag that will be
> generated. Try this:
>
> f.association :client, :collection => current_user.teaching.collect { |c|
> [c.username,
c.id] }
>