I am iterating over my users and adding them to a Table in my view. I would like one of the columns to be a checkbox to 'Flag' a user.
Ideally, clicking this checkbox displays a Bootstrap Popover with a form to explain the reason for flagging.
My problem is that the form in the bootstrap popover is displaying as plaintext.
index.html.erb
<span class="has-popover"
data-toggle="popover"
data-container="body"
data-placement="right"
title="Flag as Duplicate/Incorrect"
data-content="<%= render partial: "signers/flag", locals: {signer: signer} %>">
<i class="fa fa-flag" aria-hidden="true"></i> <%= check_box_tag 'flag' %>
</span>
_form.html.erb
<form>
<div class='form-group'>
<input type='text' class='form-control' placeholder='Reason for flag...'>
</div>
<button type='submit' class='btn btn-default'>Submit</button>
</form>
I've tried adding content_type: "application/html"
when calling the partial but no luck. Any help is greatly appreciated!