make the demo work on the rails app