Making Rake tasks ignore Rails observers
Have you ever run “rake db:migrate” on an empty database (or you did “rake db:migrate VERSION=0″ to empty the database). And then it fails on you like this? rake db:migrate (in...
View ArticleValidates_uniqueness_of and single table inheritance
If you’re using STI (single table inheritance) with some Ruby on Rails models, and you need to make sure some fields are unique across all the models, you can use validates_uniqueness_of in the parent...
View ArticleProject Railsway – a TV Series idea
Tonight I was watching “Project Runaway” which is a television series that collects 12 aspiring clothing designers to compete in a series of challenges and the top 3 finalists get to show their...
View ArticleWeight Lifting for Everyone
PART 1: This program is the simplest and greatest weight lifting program for everyone. But first.. Why weight lift? Should everyone weight lift? Absolutely! Weight lifting is more than just...
View Article
More Pages to Explore .....