From https://www.railstutorial.org/book/toy_app