Script Generate
Written January 17th, 2007
Well, here’s an interesting mistake I just made. Went to generate a model for a Rails application I’m working on, but I made a typo. Instead of entering:
script/generate model ListedParts
I accidentally typed:
script generate model ListedParts
That of course, didn’t work. It just came back with:
Script started, output file is generate
Sadly, I was unaware of the functionality of script, so of course the first thing I did after that was:
cat generate
3 seconds later, my Powerbook was locked hard, and I had a 200 MB file in my directory.
Oops.