Re: howto implement a join table

rogi
Tue, 15 Feb 2011 10:50:29 -0000

On 15 Feb., 11:29, Lorenzo Brito Morales
<lorenzo.br...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> 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 .

I dont now about active record! I mean @worker.course doesn''t work yet
at my project.
I just have the two tables and now i try to easily find a way to get
the html pages, table structures and relations that allow for linking
the courses to the workers?
I''m thinking of a manageWorkersCourses.html that let''s me
select a
worker and then add a course from a dropdown list.
On the manageWorkersCourses.html page all the courses of the selected
worker get listed.

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@googlegroups.com.