Let $R$ be a commutative ring and consider the ideal $I = (r_{1}, r_{2})$ where $r_{1}, r_{2}$ are 2 linear independent generators of $R$.
Now consider the $R-$modules. Here $I$ is a $R-$submodule of the $R-$module $R$. Can I then conclude that $I$ is free?
Argument
I have this proposition:
Given any set $B$, there exists a free $R-$module with basis $B$.
If I let $B = \lbrace r_{1}, r_{2} \rbrace$. This proposition gives me that there exists a free $R$-module contained in $I$. But this free $R-$module must be an ideal and hence equals $I$.
Does it make sense? Or is there a more easy way to show this?