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
The original code didn't work because Barney was generating an ActiveRecord
Relation. The .find almost worked, except he wanted to embed Ruby code in a
SQL statement. This should do it:
PeopleSkill.where(people_id = #{@person.id}).find
In the future, I think something like Andrew's suggestion
2 matches
Mail list logo