rails factor 12