Hello,
How to render a HTML file from RHTML file?
When I used “render :file” i need to put HTML file to VIEWS folder, but
i have static web-pages in
“PUBLIC” folder?
Thanks for replies
Hello,
How to render a HTML file from RHTML file?
When I used “render :file” i need to put HTML file to VIEWS folder, but
i have static web-pages in
“PUBLIC” folder?
Thanks for replies
On Sep 2, 5:35 am, “Igor K.” [email protected] wrote:
Posted viahttp://www.ruby-forum.com/.
There’s a number of good tutorials on routing and caching you can
google for, if you don’t want to buy the AWDR book
Igor K. wrote:
Hello,
How to render a HTML file from RHTML file?
When I used “render :file” i need to put HTML file to VIEWS folder, but
i have static web-pages in
“PUBLIC” folder?
here’s one opt: (out of many)
use an iframe in the rhtml and render the file
< iframe name=“html_frame” src="/the/path/to/public/file.html" >
(given your html’s are in the public folder)
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