Actually, Alex, Rainbowfish have the capacity to make wonderful tankmates for fancy goldfish.
But, and I stress this, You have to set the tank up as you would for tropicals:Temp ranges are between 72 and 82
Likes hard medium hard water
Needs plants and cover for safety
Omnivorous, like goldfish
They do much better in schools of 4 or more
All in all, these guys make great additions to most any community tank, goldfish tank and the like. They are very active fish.
Other than that, treat them as you would goldfish. But remember, they too add to the bio-load so you can count 4-6 rainbowfish as one goldfish in the ten gallon per fish rule of thumb.
Hope this helps!