integrate rails backend