Deductions & credits

As an addendum to this thread, can a married couple take advatage of the $500k capital gain tax exemption upon sale of their primary residence when one of them only is listed on the home's title? 
I bought our home over a decade ago and have lived in it continously as primary residence.  Upon our marraige over 5 years ago, my spouse joined me in the home, though the title is still in my name.  No other property sales have occured in over a decade.  And does the answer apply both at the Federal level and in California?  

Thank you in advance for your reply.