Commutative and Unitary Ring with 2 Ideals is Field

Theorem
Let $\struct {R, +, \circ}$ be a commutative ring with unity whose zero is $0_R$ and whose unity is $1_R$.

Let $\struct {R, +, \circ}$ be such that the only ideals of $\struct {R, +, \circ}$ are $\set {0_R}$ and $\struct {R, +, \circ}$ itself.

Then $\struct {R, +, \circ}$ is a field.

Proof
Let $a \in R^*$, where $R^* := R \setminus \set {0_R}$.

Let $\ideal a$ be the principal ideal of $R$ generated by $a$.

We have that $\ideal a$ is a non-null ideal and hence $\ideal a = R$.

Thus $1_R \in \ideal a$.

Thus $\exists x \in R: x \circ a = 1_R$ by the definition of principal ideal.

Therefore $a$ is invertible.

As $a$ is arbitrary, it follows that all such $a$ are invertible.

Thus by definition $\struct {R, +, \circ}$ is a division ring such that $\circ$ is commutative.

The result follows by definition of field.