Skip to content

Instantly share code, notes, and snippets.

@jlstr
Created January 14, 2014 23:40
Show Gist options
  • Save jlstr/8428167 to your computer and use it in GitHub Desktop.
Save jlstr/8428167 to your computer and use it in GitHub Desktop.
<% publish_to "/messages/#{current_user.convos.first.id}/chat" do %>
$('#message-display').append("<%= j render partial: 'shared/single_message', locals: { user: current_user } %>")
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment