Hi all.
I have 2 tables, one is work_times, and one is projects. I use a joint table to
link 2 as they are has and belongs to many relationship . so there is a
project_work_time. Now I need to add one column ''work_hours''
that is unique to each row of joint table project_work_time. I need to make a
view such that for one specific work_time, it lists a series of projects and
work_hours each projects is devoted on. If I left my hours inside joint table
it seems it doesn''t work what we typically did in active record, or I
am wrong?
Please give me some guidance, and the best practice .
the relationship is. projects <----->work_times
work_times<-----hours
projects <-----hours
thanks.
---------------------------------
DO YOU YAHOO!?
雅虎邮箱超强增值服务-2G超大空间、pop3收信、无限量邮件提醒
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails