Skip to content

Instantly share code, notes, and snippets.

@soend
Created July 21, 2010 21:08
Show Gist options
  • Save soend/485142 to your computer and use it in GitHub Desktop.
Save soend/485142 to your computer and use it in GitHub Desktop.
link_to_remote(options[:reply_link_text], :url => {:controller => 'threaded_comments', :action => 'new', :threaded_comment => {:parent_id => comment.id, :threaded_comment_polymorphic_id => comment.threaded_comment_polymorphic_id, :threaded_comment_polymorphic_type => comment.threaded_comment_polymorphic_type}}, :method => :get, :class=> 'comment_reply_link', :update => 'subcomment_container_' + comment.id.to_s, :position => :top, :success => "$('threaded_comment_reply_container_#{comment.id}').remove()")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment