Setup up rails part of the application