joshuago’s ruby-on-rails Bookmarks

23 APR 2011
[Yehuda Katz] Rubygems Good Practice

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.

23 APR 2011
Riding Rails: Gem Packaging: Best Practices

Don't mess with the load path. Define VERSION. Declare gem dependencies in your gemspec, not in your "lib/" subdirectory.

15 DEC 2010
Ruby in 2010: A Retrospective of a Great Year for Ruby

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.

20 JUL 2010
[Ruby Fleebie] An introduction to modules: Part 2

A really good explanation of Ruby modules as mixins, bundles of functionality.

20 JUL 2010
[Ruby Fleebie] An introduction to modules: Part 1

An excellent explanation of one of the main purposes of Ruby modules: namespacing, and a fun read.

15 JAN 2010
[Jay Fields] Rails Model View Controller + Presenter?

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.

12 JAN 2010
[John Nunemaker] Class and Instance Variables In Ruby

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.

30 DEC 2009
Rails and Merb Merge: The Anniversary (Part 1 of 6) | Engine Yard Blog

An overview of the modularity improvements that have gone into Rails 3, from Yehuda Katz.

30 DEC 2009
Rails and Merb Merge: Performance (Part 2 of 6) | Engine Yard Blog

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.

17 DEC 2009
Seed Fu: Simple Seed Data for Rails - Intridea Company Blog

The issue of pre-loading needed data for a Rails application has always been somewhat confusing and difficult.