4
würde Ich mag, wenn ein paar URL Neuversuche auf meiner alten Website überprüfen und URLS zu sammeln, die 404.Rubin URL öffnen und Rettungs
@paintings = Painting.find(:all)
@paintings.each do |painting|
open("http://www.mydomain.com/" + painting.user.username.downcase + "/" + painting.permalink)
rescue OpenURI::HTTPError
@failure += painting.permalink
else
@success += painting.permalink
end
end
Hmmm gibt kann ich nicht, dass Rettungsmethode die Fehler zu holen
syntax error, unexpected kRESCUE, expecting kEND
rescue OpenURI::HTTPError
Irgendwelche Ideen?
Perfetct :) Danke. – atmorell