Is there any way to save a rendered page as a *.html file?
Thanks.
Is there any way to save a rendered page as a *.html file?
Thanks.
Jang Choe wrote:
Is there any way to save a rendered page as a *.html file?
Thanks.
@render = render :action => controller.action_name
outf = File.open(Time.now + “.html”,“w”)
outf.puts @render
outf.close
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs