Carl Coryell-MartinCarl Coryell-Martin
SF Standup Feb 26, 2010: Golden Gate Ruby Conf Dates!
edit Posted by Carl Coryell-Martin on Friday February 26, 2010 at 09:21AM

Asking for Help

"Reloading model associations in Rails doesn't do what you expect it to do."

If you have a has_one relationship between the parent and the child and you reload the association, rails 2.3.2 will do a 'select * limit 1;' from the child table which is not what you want.

"How do I get the debugger in RubyMine to load my fixtures?"

So apparently the debugger built into ruby mine is using a different database connection that doesn't see the fixtures. Probably because they are built in an uncommitted transaction. The command line debugger doesn't have this problem.

Interesting Things