how can I display nothing with RJS

hey all, I would like to do something like:
if @mything.update_attributes(params[:mything])

I tried something like:
if @mything.update_attributes(params[:mything])
render :update do |page|
     page << nil

but I get an RJS error.

Any idea how to do this?

thanx in advance


If you’d like your RJS action to do ‘nothing’, render :nothing => true works fine. If you’d like your whole page to be redirected to a blank page, do page.redirect_to “/blank.html” where blank.html is a blank html file.


render :nothing => true

Note: in Safari, this renders a single space.


ok thanx a lot to both.