working through a rails tutorial