search for: tasklink_id

Displaying 1 result from an estimated 1 matches for "tasklink_id".

2008 Apr 23
0
self referential (n-n relationship) belongs many controller
...----------------------------------------- model : class Task < ActiveRecord::Base belongs_to :statut has_many :links has_many :tasklinks , :through => :links end --------------------------------------------------------------------------------------- 2e table : links columns : id | task_id | tasklink_id so in this table, the tasklink_id are the key for the associated tasks to task_id --------------------------------------------------------------------------------------- model : class Link < ActiveRecord::Base belongs_to :task belongs_to :tasklink, :class_name => ''Task'',...