I am trying to add a boolean attribute (third_party) to my current collection_select that currently just shows name:
<div class='form-group'>
<%= f.label :project_component_id, class: "form-label" %>
<%= f.collection_select :project_component_id, issue.project.project_components.order("LOWER(name)"), :id, :name, {include_blank:true}, class: "form-control input-sm" %>
</div>
How would I append third_party so that each select option is shown as "name(third_party)"?
Thanks!