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
thanks

Hey Heri -

as per http://api.rubyonrails.com/classes/ActionController/Base.html#M000206

you can render nothing as:

render :nothing => true

cheers,J