Edit : My question has been linked with this :Why does a minimal prime ideal consist of zerodivisors? but this proof doesn't use localization, while I want to use localization. So, kindly reopen my question.
The following proof was outlined in my online class of commutative algebra and I was not able to understand and I asked to some of my friends and it's not clear with them also.
Question: Let A be a ring. Then every minimal prime ideal in A is contained in Z(A)= the set of all zero divisors of A.
Proof: Let $P \in Spec A$ be a minimal prime ideal in A To show that $P\subseteq Z(A)$. Consider the local ring $A_P = S^{-1} A$, where S=A/P Then {$PA_P$}= $Spm A_P$ ( I understand this) = $Spec A_P$ and $Nil A_P= P A_P$.
Can you please tell how can I deduce that $Spm A_P =Spec A_P$ and $Nil A_P= P A_P$? I am not getting any ideas on how this should be proved.