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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
gene.tani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-02 14:35 UTC
Re: HTML INTO RHTML
On Sep 2, 5:35 am, "Igor K." <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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? > > Thanks for replies > -- > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---