Pedometer based on Ruby on Rails Tutorial