I am reading p. 20 of Introduction to Commutative Algebra by Atiyah and Macdonald. There there is a module decomposition
$$ A=\mathfrak{a}_1\oplus\cdots\oplus\mathfrak{a}_n $$
of a commutative ring $A$. Then the last sentence on the page says "The identity element $e_i$ of $\mathfrak{a}_i$ is an idempotent in $A$, and $\mathfrak{a}_i=(e_i)$." But do ideals have identity elements?
You forgot the sentence before that quote:
(where $\mathfrak b_i = \bigoplus_{j \ne i} \mathfrak a_j$)