serialize and deserialize issues with rails 3. #rails