Re: [Rails] associations seemed saved in console, but aren't

2011-07-20 Thread Eric Hu
My first guess would be that it has to do with the definitions for the following methods: create_tree_node tree_node.create_definition What happens if, after the IRB code you pasted in, you call c.save Course.all (if that doesn't work, does the following work?) c.interaction_outline.save

[Rails] associations seemed saved in console, but aren't

2011-07-19 Thread Matt Garland
I have a Course model: class Course ActiveRecord::Base belongs_to :interaction_outline, :class_name = Tree, :foreign_key = interaction_outline_id belongs_to :token_outline, :class_name = Tree, :foreign_key = token_outline_id after_save :make_outlines def make_outlines