Hi,
Is there a way in rails to render a page but instead of outputting to the brower, to store it in a variable?
Like:
Code:test = render('bla')
| SitePoint Sponsor |



Hi,
Is there a way in rails to render a page but instead of outputting to the brower, to store it in a variable?
Like:
Code:test = render('bla')
Code:test = render_to_string :action => "your_action"



Beautiful. Thank you very much.Originally Posted by vgarcia
Also, congrats on your awards![]()
Bookmarks