A demo from Rails book tutorial