To delete a folder in Ruby you can use the following snippet.
Sample Ruby
import os os.rmdir(ourdir) #use with an empty dir import shutil shutil.rmtree(ourdir) #use with a non empty dir
To delete a folder in Ruby you can use the following snippet.
import os os.rmdir(ourdir) #use with an empty dir import shutil shutil.rmtree(ourdir) #use with a non empty dir
To fix broken images in Javascript you can use the following snippet.
$('image').error(function(){ $(this).attr('src', ‘image/no_image.png’); });