search for: seabiscuit

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

2010 May 11
1
has_one/belongs_to -- accessing the subordinate
...ot;2010-05-11 16:17:06"> >> horse1.carriage => #<Carriage id: 5, created_at: "2010-05-11 16:17:06", updated_at: "2010-05-11 16:17:06", horse_id: 5> ======== It also works if you call Horse.new(), horse.save!() and *then* horse.carriage(): ======== >> seabiscuit = Horse.new() => #<Horse id: nil, created_at: nil, updated_at: nil> >> seabiscuit.save! => true >> seabiscuit.carriage => #<Carriage id: 6, created_at: "2010-05-11 16:19:29", updated_at: "2010-05-11 16:19:29", horse_id: 6> ======== If you call ho...