<%= simple_form_for(@availability) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.association :person, collection: Person.active %>
    <%= f.input :status, :as => :select, :collection => Availability::STATUS_CHOICES %>
    <%= f.input :description %>

    <%= f.input :start_time, as: :string,
                input_html: { class: 'datetimepicker', size: 11,
                              value: format_datetime_value(f.object.start_time) } %>
    <%= f.input :end_time, as: :string,
                input_html: { class: 'datetimepicker', size: 11,
                              value: format_datetime_value(f.object.end_time) } %>
  </div>

  <div class="form-actions">
    <%= f.button :submit %>
  </div>
<% end %>

<%= simple_form_for(@availability) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.association :person, collection: @people_collection %>
    <%= f.input :status, :as => :select, :collection => Availability::STATUS_CHOICES %>
    <%= f.input :description %>

    <%= f.input :start_time, as: :string,
                input_html: { class: 'datetimepicker', size: 11,
                              value: format_datetime_value(f.object.start_time) } %>
    <%= f.input :end_time, as: :string,
                input_html: { class: 'datetimepicker', size: 11,
                              value: format_datetime_value(f.object.end_time) } %>
  </div>

  <div class="form-actions">
    <%= f.button :submit %>
  </div>
<% end %>

Use @people_collection for the person selector on the availabilites/_form partial.
Use @people_collection for the person selector on the availabilites/_form partial.
