application from the book "Pragmatic Rails View" with a slightly different setup