Consider the following (part of a) proof:
A commutative ring $R$ where the only ideals are $(0)$ and $R$ is a field:
Proof:
Suppose that $R$ is not a field. Then there is some non-zero element $x$ $\in$ $R$ which does not have an inverse, so $(x)$ is not $(0)$ and can not contain $1$, so it is not $R$. Hence we have an ideal which is not $(0)$ or $R$.
This is the contrapositive and is a satisfactory proof.
Question
If we are assuming that $R$ is a ring with $1$, then the above proof is trivial, because our ideal $(x)$ doesn't have $1$ in it, and then it definitely isn't $R$.
Do we necessarily need $R$ to be a ring with 1 for the proof to work? Specifically, the step saying that $(x)$ is not R?