October 25, 2007 23:29
A problem I have learning Ruby on Rails is that there is such an active community base that I can't simply pick up what I need to know without getting sucked in.

For example. I want more integration tests. So I need fixtures to plop data into the test database. Fixtures are written in YAML.

Well, all my data's in the development database. I suppose I can hunt through Google. Ah. I can export it to YAML.

And there's a plugin that will allow YAML to be created with fewer foreign keys. Okay. I can use that then.

And the fixtures aren't run in dependent order. Okay.

Oh, there's another way to do do that. Okay. I'll use that instead.

And Rails doesn't tear down fixture data. Okay...

By the time I've read through everything in Google, I've forgotten what the heck I was trying to do in the first place. It doesn't help that some of the blog posts date back to the point where it's part of the core Rails package now -- I have no ability to distinguish between old and new.

So. Start at the beginning again. I want more integration tests. Step 1: Ignore Google.

« Starting from Scratch | Home | Rewrote the blog in Ruby on Rails »

name
url