TITLE: Can Boolean ring without unit be embedded into a boolean ring?
QUESTION [7 upvotes]: While going through a book (Lectures on Boolean algebra, Halmos) I got struck at the following question :
Prove that every Boolean ring without a unit can be embedded in a Boolean ring with a unit.
If possible, give me an elementary proof of the theorem.

REPLY [5 votes]: edit:
TLDR
This answer assumes that for any ring $R$ (with or without unit) a polynomial ring $R[x]$ can be constructed containing some element $x \in R[x]$. This is a valid assumption and so the answer stands.
On $R[x]$ for non-unital ring $R$
Mattia F. brought to my attention that $R$ didn't have a unit from start and so something like $x + I$ (with $I$ an ideal of $R[x]$) wouldn't make sense. I accepted the criticism since to refer to $x$ would require some element $1 \in R$, as polynomials over $R$ would have to be like:
$$r_0 + r_1 x + r_2 x^2 + \cdots + r_n x^n$$
Afterwards, from Martin Brandenburg's comment, I've learned that the required polynomial ring indeed makes sense. To construct $R[x]$ a formal element $x$ is adjoined to $R$ resulting, assuming coefficients $r_i \in R$ and $z_j \in \mathbb{Z}$, in elements of the form:
$$r_0 + r_1 x + \cdots + r_n x^n + z_1 x + \cdots + z_m x^m$$
For this to make sense the multiplication: $$(\cdot) : \mathbb{Z} \times R \to R$$ must be defined, as usual, as:
$$
n \cdot r =
\begin{cases}
    0,                       & \text{if $n = 0$} \\
    \sum_{i=1}^{n} r, & \text{if $n > 0$} \\
    (-n) \cdot (-r),         & \text{if $n < 0$}
\end{cases}
$$

original answer:
I'll expand on the accepted answer from @anon, so maybe  people should better read (and try) it first.
Let $A$ be a boolean ring without unit (that is, a ring without unit in which every element is idempotent). As a consequence of this idempotence $A$ is commutative and so consider $A[x]$, the ring of polynomials in one indeterminate over $A$. It's straightfoward that $A[x]$ has characteristic $2$, as does $A$.
Let's find a suitable ideal $I \subseteq A[x]$ such that the quotient $A[x]/I$ is a boolean ring with unit in which the original ring $A$ can be easily embedded. Furthermore let's consider only quotients in which $x$ is the desired unit. From this, for all $p = p_n x^n + \cdots + p_0 \in A[x]$ it should be that: $$ p x \equiv p \pmod{I}$$ or equivalently, as $p=-p$: $$ px + p \in I \text{, that is:}$$ $$p_nx^{n+1} + (p_n + p_{n-1})x^n + \cdots + (p_1 + p_0)x + p_0 \in I$$
Therefore, let $I$ be the set of all elements in this form together with $0$. This definition indeed yields an ideal, but to see this clearly, let's find an equivalent representation. Let $p = c_n x^n + \cdots + c_0 \in I$ be of degree $n > 0$. By definition of $I$, there are $n$ elements $p_0, \ldots, p_{n-1} \in A$ such that:
$$
\begin{cases}
    c_n = p_{n-1} \\
    c_{n-1} = p_{n-1} + p_{n-2}\\
    \cdots \\
    c_1 = p_1 + p_0\\
    c_0 = p_0
\end{cases} \iff
\begin{cases}
    c_0 + c_1 + \cdots + c_{n-1} + c_n = 0 \\
    c_0 + c_1 + \cdots + c_{n-1} = p_{n-1}\\
    \cdots \\
    c_0 + c_1 = p_1\\
    c_0 = p_0
\end{cases}
$$
So $I$ can be expressed by: $$ I = \Big\{ c_n x^n + \cdots + c_0 \in A[x] ~\|~ c_n + \cdots + c_0 = 0 \text{, with } n \geq 0\Big\}$$
The sum of elements of $I$ results in polynomials whose coefficients summed up also give $0$. Let $a = a_m x^n + \cdots + a_0$ be any polynomial in $A[x]$ and $p = p_n x^n + \cdots + p_0 \in I$ and consider their product $q = a p$. It's not difficult to see that the sum of the coefficients of $q$ gives: $$(a_m + \cdots + a_0)(p_n + \cdots + p_0) = 0$$ and therefore $q \in I$. It remains to prove that all elements in $A[x]/I$ are idempotent.
Observe that, as $A$ has characteristic $2$ and all of its elements are idempotent, for any $a_n x^n + \cdots + a_0 \in A[x]$: $$ (a_n x^n + \cdots + a_0)^2 = a_n^2 x^{2n} + \cdots + a_1^2x^2 + a_0^2 = a_n x^{2n} + \cdots + a_1x^2 + a_0 $$
From this, it follows that: $a^2 + a \in I$, that is: $$a^2 \equiv a \pmod{I}$$
The element $x + I$ is an unit of $A[x]/I$ by construction, but just to make sure, observe that $ax + a \in I$, for in the sum of all coefficients of $ax + a$, the coefficients of $a$ are summed exactly two times.
At last, if $a = b \pmod{I}$ for $a, b \in A$, then the sum of the coefficients of $a + b$ equals $0$, wich means that $a = b$. So the homomorphism $i: A \to A[x]/I$ given by $a \mapsto a + I$ is injective.