<P> The film was made by the producers of Legally Blonde and written by Nicole Eastman, Karen McCullah, and Kirsten Smith . </P> <P> The Mike Chadway character is allegedly based on and inspired by Adam Carolla . Gerard Butler sat in on The Adam Carolla Show, observing only, in order to prepare for his role . </P> <P> The film was, for the most part, filmed on location in California, including Sacramento, Los Angeles, and San Pedro, Los Angeles . The montage sequence toward the end of the film includes the Foresthill Bridge near Auburn . </P> <P> A soundtrack was released on August 4, but only contained music composed for the film . Below are the songs featured in the film . </P>

Where was the movie the ugly truth filmed