Skip to content

Instantly share code, notes, and snippets.

@jeromegn
Created May 21, 2009 17:09
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 jeromegn/115573 to your computer and use it in GitHub Desktop.
Save jeromegn/115573 to your computer and use it in GitHub Desktop.
var app = $.sammy(function() { with(this) {
get('#/repondre/:comment_id', function() { with(this) {
partial('/templates/comments/new.html.erb', {parent_id: params['comment_id']}, function(content){
$("#comment_"+params['comment_id']).append(content);
});
}});
}});
$(function() {
app.run()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment