Why rendering partial inside <template>
tags of stream.erb file raises ActionView::MissingTemplate
error?
For example in some_action_in_controller.turbo_stream.erb file i have;
<turbo-stream action="some_action" target="some_target">
<template>
<div class="some-class">
<% @some_records.each do |r|
<%= render partial: 'some_partial', locals: { data_to_partial } %>
<% end% >
</div>
</template>
</turbo-stream>
In this case i use <turbo-stream>
tag instead of <%= turbo_stream.. %> since in my stream file, i render more than just a partial to maintain the UI in page where i am streaming the data.
Why am i getting the error? and what is actually happening?