Subscribe to
Posts
Comments

Archive for November, 2007

Bash completion for script/generate

The Rails generator script/generate knows pretty well what things it can generate. In fact, it knows much better than I do. So, I think it could really give me some help when I’m typing along on the command line. If you save the snippet below as /etc/bash_completion.d/generate you can enjoy this help, too. _generate() { […]

I’m not yet so enlightened that all of my Rails unit and functional tests run without accessing the database. Indeed, I’m still using YAML fixtures to populate the database for testing. I also insist on having foreign key constraints in the database, a thing that’s not exactly encouraged by Rails, but which is quite possible […]

Fork me on GitHub