initialize the app on rails