Invoke render multiple times


#1

I need to invoke render() multiple times. This is not to render a
response to the browser but to get the result of render() and put it in
files. Is there another way to do it if it’s not possible to do it
directly with render()?

Btw, what’s the reasoning behind only allowing render() to be called
once a request?

/Marcus


#2

Marcus

I need to invoke render() … to get the result of render() and put
it in
files. Is there another way to do it if it’s not possible to do it
directly with render()?

render_to_string
in ActionController::Base

Alain


#3

It works. Thanks

/Marcus

Alain R. skrev:


#4

Thank you. That did the trick

/Marcus

Alain R. skrev: