Forum: Ruby on Rails Invoke render multiple times

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A68946a08b9f14d833f1eac7a7c94a4b?d=identicon&s=25 Marcus Andersson (Guest)
on 2006-02-12 11:11
(Received via mailing list)
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
Ba3a00606eb530dcab2c4a6a59bf366d?d=identicon&s=25 Alain Ravet (Guest)
on 2006-02-12 12:00
(Received via mailing list)
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
3a6666f57152610f172a77c8fe6a7420?d=identicon&s=25 marcus (Guest)
on 2006-02-12 17:04
(Received via mailing list)
It works. Thanks

/Marcus

Alain Ravet skrev:
3a6666f57152610f172a77c8fe6a7420?d=identicon&s=25 marcus (Guest)
on 2006-02-13 13:14
(Received via mailing list)
Thank you. That did the trick

/Marcus

Alain Ravet skrev:
This topic is locked and can not be replied to.