Code for a Rails demo app.