Books and Screencasts
Objects on Rails
A developer notebook on applying classic Object-Oriented principles to Ruby on Rails projects.
-
-
Recent Posts
Recent Comments
- newz2000 on The sorry state of video hosting for WordPress blogs
- Jheriko on Underscores are stupid
- Jason Dixon on Underscores are stupid
- Zecc on Underscores are stupid
- Kurt Werle on Underscores are stupid
Archives
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
Categories
Meta
Tag Archives: rails
Object Oriented Programming Comes to Rails
decent_exposure helps you program to an interface, rather than an implementation in your Rails controllers. Sharing state via instance variables in controllers promotes close coupling with views. decent_exposure gives you a declarative manner of exposing an interface to the state … Continue reading
Counters for Partials
Sometimes I like to number rows using a counter when rendering lists of things: <% @products.each_with_index do |product, i| %> <li class=”product_<%= i %>”><%= product.name %></li> <% end %> They are handy for testing, among other things. Of course, if … Continue reading
Rails 3 resource routes with dots; or, how to make a Ruby developer go a little bit insane
This one cost me at least an hour of frustration. So apparently the Rails router has considered the dot (“.”) to be a “separator” character along with the slash (“/”) since version 1.2. I don’t know in what context this … Continue reading
The Trifecta of FAIL; or, how to patch Rails 2.0 for Ruby 1.8.7
It’s an oft-stated fact that most disasters result not from a single point of failure but from a combination of failures reinforcing each other. I wouldn’t term the problem I ran into last Friday a disaster, but it certainly cost … Continue reading
Revision-Stamp Your Rails Apps
One of my biggest pet peeves in doing QA is when I spend half a day trying to track down why a bug I thought I’d fixed has cropped up again, only to discover that the reporter was looking at … Continue reading
Monkeypatching is Destroying Ruby
(The title of this post is intended to be deliberately provocative, as well as being a nod to Steven Colbert’s “The People Destroying America” segments. It’s provocative because I want to get people talking about this issue. I don’t actually … Continue reading
Posted in Uncategorized
Tagged monkeypatching, patterns, plugins, practices, rails, ruby
46 Comments
Announcing NullDB 0.0.1
I spent the afternoon coding an alternative to the ARBS and UnitRecord database-elimination plugins. Definitely scratching a personal itch, as I had a project where I wanted to use one of the above-mentioned libraries but i just couldn’t seem to … Continue reading
Posted in Uncategorized
Tagged activerecord, plugins, Projects, rails, ruby, testing
Leave a comment

