Re: howto implement a join table

Lorenzo Brito Morales
Tue, 15 Feb 2011 10:29:45 -0000

With Active record , its already link it, i mean, whit @worker.courses
 you have a collection of what courses has a worker take it.
With scaffold is to set up custom code to controller/view/model .

On Tue, Feb 15, 2011 at 1:16 AM, rogi
<patrik.keller-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:
> Hi There
>
> I have a table for the names of my workers and a table with the
> courses they have attended.
> Now I try to create a join table to see which workers attended what
> courses.
>
> 1.) can the join table be done with scaffold
> 1.1) if yes, does it automatically create the form for assigning
> courses to workers
> 1.2) if no, is there a good(detailed) tutorial for doing this in rails
> 3
>
> BR
> rogi
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at