次のモデルがある場合:
client has_many :projects
project has_many :tasks
tasks has_many :timeentries
と
timeentries belongs_to :task
task belongs_to :project
project belongs_to :client
次に、次のようなモデル ステートメントが必要ですか。
timeentries belongs_to project :through => :tasks
client has_many :tasks, :through => :projects
ありがとう