A ruby on rails based story engine