<%= form_for @user_notification, :url => { action: :save_client_notice, id: @loan_application.id } do |form| %> <% if @user_notification.errors.any? %>

<%= pluralize(@user_notification.errors.count, "error") %> prohibited this procedure from being saved:

    <% @user_notification.errors.full_messages.each do |message| %>
  • <%= message %>
  • <% end %>
<% end %>
<%= form.label :user_id, "Send To" %> <%= form.select :user_id, User.where(id: @loan_application.user_id).map {|u| [u.email, u.id]}, {:prompt => "Select User"}, class: "form-control" %>
<%= form.label :message %> <%= form.text_area :message, rows: 3, class: "form-control" %>
<%= form.submit "Save Notification", class: "" %> <% end %>