following along with chapter 15 of Rails 4 in Action