Displaying 1 result from an estimated 1 matches for "volunteer_id".
Did you mean:
volunteer'd
2006 Jan 06
1
Insert to associated table question
Hello Friendly Gurus,
I have a volunteers table and an hours tables. I''ve edited the
respective models to have: "hours belongs_to :volunteer" and "volunteers
has_many :hours". My problem is, I don''t know how to set the
volunteer_id column in the hours table to the appropriate value so that
hours will belong to volunteers.
I''ve added the following line to list.rhtml in the volunteers view so I
can pass the volunteer id to the hours new action:
"<td><%= link_to ''Add Hours'', :controlle...