Skip to content

Instantly share code, notes, and snippets.

@ccjr
Created April 3, 2010 19:58
Show Gist options
  • Save ccjr/354811 to your computer and use it in GitHub Desktop.
Save ccjr/354811 to your computer and use it in GitHub Desktop.
[Beginning Rails 3] Listing 8-12. The app/views/comment/destroy.js.erb file
$("#<%= dom_id(@comment) %>").remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment