updated post app to run a rails backend