unepwcmc/SAPI

View on GitHub
app/views/admin/nomenclature_changes/build/_new_rank.html.erb

Summary

Maintainability
Test Coverage
<div class="control-group">
  <label class="control-label">Rank</label>
  <div class="controls">
    <%= ff.select :new_rank_id,
      options_from_collection_for_select(
        @ranks, :id, :name, ff.object.new_rank_id || f.object.new_output_rank.try(:id)
      ),
      {},
      { class: 'rank-selector' }
    %>
  </div>
</div>