Does Eating Before Bed Give You Nightmares?

Why do some foods affect our dreams?