
I just wanted to mention that this documentation from the rails api is confusing and out of date. I should probably figure out how to update it myself. That is on my list of things to do, meanwhile maybe somebody else will get there first. As of rails 1.0 instantiated fixtures are disabled by default, so you can't just say @users.joe.name to get Joe's name. You need to do users(:joe).name. If you want the first type of syntax you need to set self.use_instantiated_fixtures = true. This sure confused me. There is a really nice writeup on this stuff and the performance implications here.
No comments:
Post a Comment