Following the tutorial at https://www.railstutorial.org/book/beginning#sec-the_first_application