To trade resources with an ally, you'll need a trading post, as well as the Coinage lore that will open trade routes where you can exchange food / wood etc for gold.