Render Nothing


#1

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 !!


#2

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


#3

Check this out:

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

Best,
Mike P.


#4

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