Most often, if something smells good, your dog will take a bite.
This is known as dietary indiscretion.
The most common cause of dogs vomiting blood is after they eat something that they shouldn't have.
This type of poisoning will likely cause the dog to vomit blood once digesting the toxins.