app/views/ratings/_form.html.erb
<%= form_with(model: rating, local: true) do |form| %>
<%= render 'layouts/errors', errors: rating.errors %>
<div class="field">
<%= form.label :playbook %>
<%= form.collection_select :playbook_id, Playbook.all, :id, :name %>
</div>
<div class="field">
<%= form.label :charm %>
<%= form.number_field :charm %>
</div>
<div class="field">
<%= form.label :cool %>
<%= form.number_field :cool %>
</div>
<div class="field">
<%= form.label :sharp %>
<%= form.number_field :sharp %>
</div>
<div class="field">
<%= form.label :tough %>
<%= form.number_field :tough %>
</div>
<div class="field">
<%= form.label :weird %>
<%= form.number_field :weird %>
</div>
<div class="actions">
<%= form.submit %>
</div>
<% end %>