same error undefined method latitude but it is clearly creating the locations and saving them