Checking the maximality of a principal ideal in $R[x]$

Let $R = \mathbb{Z}_{(2)}$ be the localization of $\mathbb{Z}$ at the prime ideal generated by $2$ in $\mathbb{Z}$. Then prove that the ideal generated by $(2x-1)$ is maximal in $R[x]$.


Hint. Prove that $R[x]/(2x-1)\simeq R[\frac12]$ and $R[\frac12]=\mathbb Q$.