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')
Printable View
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.Quote:
Originally Posted by vgarcia
Also, congrats on your awards :)