How to get view as a string in the controller

I guess I read somewhere how to get the view as a string in the controller. Now that I need it, I couldn’t find it.

Any help.

Neeraj Kumar wrote:

I guess I read somewhere how to get the view as a string in the controller. Now that I need it, I couldn't find it.

Any help.

>

http://api.rubyonrails.com/classes/ActionView/Helpers/CaptureHelper.html

render_to_string