solutions
script/migrator for navigating migrations
I got tired of digging through migrations, so here’s a simple console navigator. The instructions are all in there.
Multiple Table Inheritance with ActiveRecord
Update 02/02/10: There are two new sections: Fixing method_missing and Handling attributes hash, which fix a few issues that popped up since first post.
If you aren’t interested in reading all the details you may want to make the long story short.
Imagine writing an online shop with different types of products. Normally all products would have [...]
Testing Helpers That Use Scoped Translations
Update: While this technique is useful when you actually need to bind a template to your helper test, most of the time you can simply stub the helper right there, using something like stub(self).t(‘.title’) { "Title" }
Once on a beautiful day the sun was shining and the room was full of pleasant warmth. I was [...]