search for: propertyvariablestack

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

2005 Oct 25
1
initialising an instance variable on ActiveRecord creation
...property_variable_stack_id bigint unsigned not null, primary key(id), foreign key (property_variable_stack_id) references property_variable_stacks (id)) type=InnoDB; Here you can see a reference to a table property_variable_stacks. >From outside the Property class I can set up a Property with a PropertyVariableStack like this: p=Property.new p.property_variable_stack=PropertyVariableStack.new p.save! This works just fine. However, I have not been able to create a new PropertyVariableStack automatically for each new Property -- I have tried before_create, after_create, initialize... All to no avail. For exampl...