# Is there a way to obtain the body of the last render?

**URL:** <https://www.ruby-forum.com/t/is-there-a-way-to-obtain-the-body-of-the-last-render/189442>\
**Category:** Rails\
**Created:** [June 1, 2010, 4:54am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-obtain-the-body-of-the-last-render/189442 "2010-06-01T04:54:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@daveh](https://www.ruby-forum.com/u/daveh)\
**Post date:** [June 1, 2010, 4:54am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-obtain-the-body-of-the-last-render/189442/1 "2010-06-01T04:54:37Z")

</div>

Is there a way to obtain the response body of the last render in  
Rails3 beta3?

For example, given:  
render :action=\>‘aaa’, :layout=\>‘bbb’

I had thought something like @\_current\_render would work but it did  
not, it is nil.

---

<div class="post-metadata">

**Author:** ![daveh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@daveh](https://www.ruby-forum.com/u/daveh)\
**Post date:** [June 1, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-obtain-the-body-of-the-last-render/189442/2 "2010-06-01T18:40:03Z")

</div>

What about response\_body?

–  
Volker

removed\_email\_address@domain.invalid schrieb:
