You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to render a template to a string, without any settings from that template making its way to the current pages stash?
For example, say I have
<%= content 'before_end_body' %>
in my base template. Useful for adding JS to the very bottom of the page usingcontent_for
.But if I use
for example if I wanted to extract something to show on another page, the stash part for
before_end_body
is also added to the current page.Is there a way to render a template to a string but with a local stash (or what ever it is called)
Beta Was this translation helpful? Give feedback.
All reactions