I would like to render a partial template as a full template. The reason
is that the partial contains content normally displayed via xhr and I
want to display it also if my app degrades.
The way I do this now is to have a full template containing one line
the below, but I’d rather do away with it because it seems a pointless
one line file:-
<%= render :partial => “my_partial_template” %>
I call this from the controller like this:
render :action => :my_full_template
What I’d like to do is render “my_partial_template” directly from the
controller but render it as a full template so that it is displayed
within my application layout.
The following is one solution but I think it isn’t very elegant
render :template => “my_controller/_my_partial_template)”
Is there a better way to achieve this?