NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Dont copy code

Posted on February 26, 2007 - Filed Under Other, RubyOnRails

Well it hits me so often… I’m using copy&paste to build similar code. And then it fires me back, when I made some stupid typo. Finding case of such errors is usually very annoying…

I was adding several fields to table in Rails application. I wrote migrations self.up and used this as a skeleton for remove_column in self.down. Of course I have left one coma to much, and struggled over 20 minutes to find what was wrong…

Popularity: 3% [?]

Hits for this post: 2436

Similar Posts

Comments

Leave a Reply