How can I display nothing with RJS

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

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

but I get an RJS error.

Any idea how to do this?

thanx in advance

Pat

render :nothing => true

Note: in Safari, this renders a single space.

Jason

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.

Vish

ok thanx a lot to both.

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