Initial rails app

This reverts commit d7ab3c66ed842246970cb637fd2ba0f0c5481ca0.