Thanks for the reply. I did look into this, and I can’t get it working. This code doesn’t work:
const html = `<%= ApplicationController.renderer.render template: 'shared/condition' %>`
It’s not a
renderer.render error, though, because this works:
const html = `<%= ApplicationController.renderer.render inline: 'something' %>`
The contents of shared/_condition.html.erb isn’t weird, with no variables:
<a href='#' data-action='condition#remove'><i class="fas fa-trash-alt"></i></a>
<a href='#' data-toggle="popover" data-target='condition.item' data-action='condition#doNothing'>Item</a>
<a href='#' data-toggle="popover" data-target='condition.value' data-action='condition#doNothing'>Value</a>
I’ve tried every combination of path I can think of: app/views/shared/condition, /app/views/shared/condition, with the _, with the .html.erb.
Semi-related: is there somewhere I can see any errors generated? The log shows the compilation succeeded in general, but the controller this is in simply isn’t generated. I can’t find any obvious error log.