old_model.find(old_model_id)
new_model = MyModel.new(old_model.attributes)
new_model.some_collection << old_model.some_collection.collect{|x| x.clone}
new_model.save
2 years ago
•
0 notes
I had a problem where i had a 580mb dmg and wanted to burn to 700mb CDR… For some reason, Disk Utility prevented me from burning saying that the disk size wasn’t big enough. I ran the following command on a folder with the .dmg file and it converted it to an .iso. Disk Utility then allowed me to burn to the same CD:
hdiutil makehybrid -o isofilename folderwithdmg
This should create isofilename.iso which you should be able to burn with disk utility.
4 years ago
•
Notes