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 <
This is not a good practice as you can see by the comments. Rails have the concepts of view, partial and layout. That said, the view is the only one you should keep using only once. So my suggestions are: