Below is the code snippet:
<div class="col-md-8 content-row-top-spacer">
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">Name</span></div>
<%= f.text_field :name, placeholder: 'Campaign Name', class: 'w-100' %>
</div>
<div id="campaign_name_error" class="errors_container"></div>
</div>
I want the input field to expand across its container by 100% and have the prepend display properly within the input, similar to the bootstrap demos.
However, when I run this code, I encounter the following issue:
https://i.sstatic.net/xjxfS.png
Any suggestions on how to resolve this problem?