% wrap_id = dom_id(commentable, 'list_admin_comments') html = render('list_block') %> $base = $('#<%= dom_id(commentable, 'list') %>'); $cont = $('#<%= wrap_id %>') if ($cont[0]) { $cont.html("<%= j html %>"); } else { $base.after("<%= j %[