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


Heri R.
http://sprinj.com

Hey Heri -

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

you can render nothing as:

render :nothing => true

cheers,J

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs