Second part of tutorial working with rails