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
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
2 matches
Mail list logo