Use .map instead of .each in LinkGenerator