Session

A Code Walk-through of the Source Behind respond_to (annotated)

Andrea O.K. Wright, Enterprise Architect, Chariot Solutions

Date: Sunday, May 20
Time: 1:50pm - 2:40pm
Location: Oregon Ballroom 202

This talk will be a detailed
code walk-through
of the source behind
MimeResponds::InstanceMethods::respond_to.

Though it was introduced
in Rails 1.1, early last spring—
it has more visibility now that
it appears in generated scaffolding.

We'll talk about how adding :format
to the default routes for a request
facilitates graceful degradation
and makes it easier to support REST.

We'll cover in depth
how the application can tell
if it should render RJS
or if it should respond with XML.

We'll walk through the class Responder
and the module Mime.
And no — the talk itself
will not be in rhyme.

Conference News and Coverage