partials: disabling rendering if error

hi all,
i have this ajax call that most of the time will be an error (it scans websites and most of the time, the url is not valid, with Net::HTTP.get URI.parse(url). I have also other places with similar unexpected behavior

so how do i stop and disable page rendering if there is a rails or ruby error

Hey Heri -

as per

you can render nothing as:

render :nothing => true