demo app by RoR tutorial