You should be able to omit the to_start variable entirely here, -- just having the candidates.select block at the end should do The Right Thing.