search for: 836091

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

Did you mean: 136091
2006 Sep 26
0
ActiveRecord, has_many association and object graphs
I am still using Rails 1.0... I have a simple has_many association: class Round < ActiveRecord::Base has_many :scores end class Score < ActiveRecord::Base belongs_to: round end When I do something like this (contrived for the sake of clarity): rr = Round.find(params[:id]) rr.scores.each { |s| logger.debug("object_id=#{s.round.object_id}") } I see a database query on