What you really need is your html file moved somewhere under app/ views, renamed to _htmlfile.rhtml and rendered as partial in your rhtml template, like <%= render :partial => 'htmlfile' %> or something. Possibly, but unlikely, I am missing some very unusual need to keep things as you did, more detailed explanation would help make things clearer. Don't try to provide abstract description, better try to be as specific as it ever possible, or you'll get lots of answers barely applicable to your case.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Render HTML in RHTML | 0 | 82 | June 16, 2007 | |
Importing file in html (noob) | 2 | 119 | January 15, 2008 | |
newbie question about rendering partials and rhtml | 6 | 101 | May 5, 2007 | |
Strange application.rhtml rendering | 5 | 108 | April 6, 2007 | |
render :template render:partial | 0 | 83 | July 24, 2008 |