Forum: Ruby on Rails HTML from view into controller

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fa342466c787830ea65ffc638d22d9c4?d=identicon&s=25 GG9 Rails (gorter9)
on 2008-10-24 12:52
How can i get the html code create by a view into the controller

I need to save the html created into a view into a file
something like 'index.html', 'w' ){|file| file.write (The_view)}
90ea347c45cdfbc1c5767dd6304d9c10?d=identicon&s=25 Borja Martín (Guest)
on 2008-10-24 13:03
(Received via mailing list)
You can try the render_to_string method:


GA Gorter escribió:
This topic is locked and can not be replied to.