If this form contains an image the rich_text_area field doesn't clear 
because I'm calling     
ActionCable.server.broadcast 'room_channel', content: @message.content, 
msg_time: Time.now, recipients: @message.recipients, sender: 
@message.sender, sender_name: User.find(@message.sender).name


<%= form_with model: @message, multipart: true, remote: true do |f| %>
    <%= f.rich_text_area :content, class: 'form-control' %>
    <%= f.hidden_field :recipients, value: @conversation_with.id %>
    <%= f.hidden_field :sender, value: current_user.id %>
    <%= f.submit 'Send' %>
<% end %>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/03f98b9b-e97c-4ef0-b0b5-2a46afefabff%40googlegroups.com.

Reply via email to