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

Re: [Rails] Re: Printing nested data to screen

2011-07-20 Thread Eric Hu
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