Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Forked from maltebar/gist:4b294f94c08dd9d52a00
Last active August 29, 2015 14:20
Show Gist options
  • Save tbuehlmann/fec414addb6e39456224 to your computer and use it in GitHub Desktop.
Save tbuehlmann/fec414addb6e39456224 to your computer and use it in GitHub Desktop.
<div class="chatboxinput">
<%= form_for([@conversation, @message], :url => conversation_messages_path(@conversation, @message, format: 'js'), :remote => true, :html => {id: "conversation_form_#{@conversation.id}"}) do |f| %>
<%= f.text_area :body, class: "chatboxtextarea", "data-cid" => @conversation.id %>
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment