Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active November 13, 2017 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/9d2c5ab0feb93f80adf294f8de36645d to your computer and use it in GitHub Desktop.
Save domagude/9d2c5ab0feb93f80adf294f8de36645d to your computer and use it in GitHub Desktop.
<%= form_tag({controller: "private/conversations", action: "create"},
method: "post",
remote: true) do %>
<%= hidden_field_tag(:post_id, @post.id) %>
<%= text_area_tag(:message_body,
nil,
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