I have following question about Universal Property for Quotient Field that leads me to following contradiction:
The statement is: Let $R$ be an intergal domain and $\phi: R \to F$ is a ring morphism. Futhermore, let $i: R \to Q(R)$ be the canonic inclusion. Then there exist a unique morphism $\bar{\phi}: Q(R) \to F$ with $\phi = \bar{\phi} \circ i$.
Then I consider following example: Let $R = \mathbb{Z}, F = \mathbb{Z}/(p)$ for a prime $p$. Let $\phi: \mathbb{Z} \to \mathbb{Z}/(p)$ be the canonic projection. Obviously, $\phi \neq 0$. But on the other hand the extension $\bar{\phi}: \mathbb{Q}= Q(\mathbb{Z}) \to \mathbb{Z}/(p)$ is obviously zero map since in $\mathbb{Q}= Q(\mathbb{Z})$ we have $1 = \frac{p}{p}$ and therefore $\bar{\phi(1)}=0$. Where is the error in my reasonings?
The ring homomorphisms $\phi:R\to F$ is required to be injective (and $F$ is required to be a field). See here for example. More generally, a ring homomorphism $\phi:R\to F$ extends to a ring homomorphism $Q(R)\to F$ if and only if $\phi$ maps every non-zero element of $R$ into a unit in $F$.