sample application based on michael hartl rails tutorial