ruby
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 [...]
Off Github
Right about now everyone is switching away from GitHub gem host. It’s crappy enough that you have to edit environments in your config files — you also have to reinstall the big pile of gems on your machines. Cleaning up my big old gem list doesn’t strike me as a fun leisure time.
Off Github is [...]