# How can I display nothing with RJS

**URL:** <https://www.ruby-forum.com/t/how-can-i-display-nothing-with-rjs/73626>\
**Category:** Rails\
**Created:** [October 25, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/how-can-i-display-nothing-with-rjs/73626 "2006-10-25T20:28:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [October 25, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/how-can-i-display-nothing-with-rjs/73626/1 "2006-10-25T20:28:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [October 25, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/how-can-i-display-nothing-with-rjs/73626/2 "2006-10-25T21:08:32Z")

</div>

render :nothing =\> true

Note: in Safari, this renders a single space.

Jason

---

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [October 25, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/how-can-i-display-nothing-with-rjs/73626/3 "2006-10-25T21:30:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [October 25, 2006, 10:16pm UTC](https://www.ruby-forum.com/t/how-can-i-display-nothing-with-rjs/73626/4 "2006-10-25T22:16:42Z")

</div>

ok thanx a lot to both.
