May 2007 Archives

Posted by Mike Mangino on Jul 11, 2006

Page caching and content types for feeds

Page caching inside Rails is great for HTML, but it will only send the text/html content type. Here's a quick recipe for caching other types of content (especially rss) Continue Reading…

Posted by Mike Mangino on May 23, 2007

Welcome Jeremy Voorhis

Elevated Rails is proud to welcome Jeremy Voorhis to the team. I'm extremely proud of the team we're building, and think that Jeremy has made a wonderful impact. We're always looking for great people to collaborate with, so if you are interested in working with an exciting, growing company that cares about building incredible software and working with brilliant people, let me know at mmangino@elevatedrails.com or 773.259.0145.

Posted by Mike Mangino on May 22, 2007

Tightening the feedback loop

At Elevated Rails, we love agile development. I has worked incredibly well for us. So what happens when I tighten the feedback loop on another part of my life? It turns out a tight feedback loop makes a huge difference for a runner as well. Continue Reading…

Posted by Mike Mangino on May 13, 2007

Strangeness in Belongs_to

I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz:

bob=User.find(1)
alice=User.find(2)
trip=Trip.new

trip.driver=bob
old_driver=trip.driver
trip.driver=alice

In this example, who is old_driver? If you guessed Alice, you're right.

Continue Reading…

Posted by Mike Mangino on May 10, 2007

Custom Expectation Matchers in RSpec

We've been using rspec on a couple of projects. There's no question that it has made our code cleaner and more DRY. Best of all, it has been easy to make our tests more DRY while giving user better error messages at the same time. See inside for the details. Continue Reading…

Posted by Mike Mangino on May 09, 2007

Mike Mangino will be speaking at the Rails Edge

It's been an exciting year so far, and it just keeps getting better. I'll be talking about testing in the real world and RESTful rails at the Rails edge in Chicago. The Pragmatic Studio events are always wonderful and I'm really looking forward to hearing the talks at this one as well. Check it out at http://www.pragmaticstudio.com/therailsedge/sessions.html

Posted by Mike Mangino on May 07, 2007

Elevated Rails is proud to sponsor BarCamp Chicago

Elevated Rails is a proud sponsor of BarCampChicago. This community has been great to us, so expect us to start giving back where we can. We’re looking forward to it, so look for us at RailsConf and BarCamp.

No updates for more than a month and then two today. I guess that’s a record. Expect a post on rspec custom matchers tomorrow or Monday.

Continue Reading…

Posted by Mike Mangino on May 05, 2007

CI with CruiseControlRB

I’ve written previously about Continuous Integration using cerberus. Over the last few months, we’ve moved from cerberus to cruisecontrolrb . Inside, I’ll give you some tips on how to get the most from cruise control.

Continue Reading…

Posted by Mike Mangino on May 05, 2007