joshuago’s ruby-on-rails Bookmarks
Use simple requires in your library. If you need to catch the case where the dependency could not be found, rescue from plain old LoadError, not Gem::LoadError.
Don't mess with the load path. Define VERSION. Declare gem dependencies in your gemspec, not in your "lib/" subdirectory.
A great summary of the new things in the Ruby and Rails communities over the course of 2010. Good for reference when trying to keep up with all the new technology out there, even for seasoned Ruby programmers.
A really good explanation of Ruby modules as mixins, bundles of functionality.
An excellent explanation of one of the main purposes of Ruby modules: namespacing, and a fun read.
An example of how a Presenter helps keep controllers thin, especially when an action needs to pull up objects of many different kinds of models using different criteria.
How to get inheritable class attributes working properly with parent classes and subclasses. A pretty involved process necessary for getting around the obvious approach, which does not work.
An overview of the modularity improvements that have gone into Rails 3, from Yehuda Katz.
Yehuda Katz on the work he did with reducing general controller overhead and speeding up the rendering of a collection of partials for Rails 3.
The issue of pre-loading needed data for a Rails application has always been somewhat confusing and difficult.