I have a controller that responds to both html and js. The html view renders the whole page (including the header and footer), while the <
html
js
Like others have mentioned, rendering another non-partial view in another view is "Not the rails way", if however you still insist on doing it, one method is:
<%= render :file => '' %>