Well I don't know if you've ever tried igniting a ram, but it is definately very hard, once I had like 8 archer units firing at one ram and it didn't break down. I think igniting one is also a chance of luck.
Personally, I would have the first gate also closed, but I accept D_A's solution.