# Render Nothing

**URL:** <https://www.ruby-forum.com/t/render-nothing/71836>\
**Category:** Rails\
**Created:** [December 18, 2005, 6:55pm UTC](https://www.ruby-forum.com/t/render-nothing/71836 "2005-12-18T18:55:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [December 18, 2005, 6:55pm UTC](https://www.ruby-forum.com/t/render-nothing/71836/1 "2005-12-18T18:55:13Z")

</div>

Hi,

What’s the best way to render nothing ? I am making an ajax call to  
an action on my controller that does not need to make any changes to the  
view.

Not sure how do that yet as I get an exception in the logs saying  
xxx.rhtml not found…

Thank you all !!

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [December 18, 2005, 6:58pm UTC](https://www.ruby-forum.com/t/render-nothing/71836/2 "2005-12-18T18:58:23Z")

</div>

Doh !! Never mind got it \> render :nothing =\> true

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [December 18, 2005, 7:26pm UTC](https://www.ruby-forum.com/t/render-nothing/71836/3 "2005-12-18T19:26:06Z")

</div>

Check this out:

[http://www.xml.com/pub/a/2005/11/02/rest-on-rails.html](http://www.xml.com/pub/a/2005/11/02/rest-on-rails.html)

Best,  
Mike P.

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [December 18, 2005, 8:59pm UTC](https://www.ruby-forum.com/t/render-nothing/71836/4 "2005-12-18T20:59:42Z")

</div>

On Sun, Dec 18, 2005 at 06:55:13PM +0100, KiteSurfer KiteSurfer wrote:

> What’s the best way to render nothing ? I am making an ajax call to  
> an action on my controller that does not need to make any changes to the  
> view.
> 
> Not sure how do that yet as I get an exception in the logs saying  
> xxx.rhtml not found…

def some\_ajax\_action

# do stuff…

render :nothing =\> true  
end

marcel
