following a rails tutorial for this application.