Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<%= form_tag({controller: "private/conversations", action: "create"},
method: "post",
remote: true) do %>
<%= hidden_field_tag(:post_id, %>
<%= text_area_tag(:message_body,
rows: 3,
class: 'form-control',
placeholder: 'Send a messsage to the user') %>
<%= submit_tag('Send a message', class: 'btn send-message-to-user') %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment