trouble figuring out select tags

Perhaps one way might be
<%= select_tag “addpersonid”,
options_from_collection_for_select( (@people - @team), :id, :family_name )

-%>

Of course I’m not sure what the :action => ‘update’, :id => @id,
:addperson_id => p.id is in there for. This should be
elsewhere in the form surely.

HTH

Daniel

Of course I’m not sure what the :action => ‘update’, :id => @id,
:addperson_id => p.id is in there for. This should be elsewhere in the
form

surely.

HTH
Daniel

Yes. That was a hasty cut and paste by me.
I ended up taking it out after I posted the message.
I will try your solution. It looks like the @people - @team part means

that you subtract anybody who is in @team from @people, right?

Yes. The association collections that AR returns are delegated to Array. So normal array operations mostly work.

Also not
sure what those asterisks are doing. But I will look it up in the API if

I can find it.

Not sure what asterisks you mean. I don’t see any.

Cheers

Daniel

Must be the formatting from the copy/paste. Sorry about that.

Please do disregard those :slight_smile:

Cheers

Daniel