The myth of creating Ave from a rib from Adam came from non Muslims. Imam Jafar Al-Sadiq (AS) refuted this false claim.
Ave was created like Adam was created when Adam was in the heaven and both lived together in the heaven.
Quranic verses proved this fact .
I have replied similar question with more details on this website.
You may refer to the reply.