search for: old_page_id

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

2006 Oct 30
7
belongs_to nonintuitive results with assignment?
class Page < ActiveRecord::Base has_many :lists end class List < ActiveRecord::Base belongs_to :page end ######### controller code, inside action: list = List.find(params[:id]) old_page = list.page list.page = new_page # what is the value of old_page now? old_page now is the same as new_page! what the heck?!? The only thing i can think of is that old_page is