_form.html.erb 406 B

12345678
  1. <%= bootstrap_form_for(@conversation.conversation_participations.build) do |f| %>
  2. <%= render 'shared/error_messages', object: f.object %>
  3. <%= f.hidden_field :conversation_id, value: @conversation.id %>
  4. <%= f.select :user_id, options_for_select(User.where.not(id: @conversation.users.map(&:id)).map{ |user| [user.name, user.id] }) %>
  5. <%= f.submit "Add user", class: "btn btn-primary" %>
  6. <% end %>