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
you just need to pass a context to your render method:
render
<%= render :template => "show" -%>