added rails backend