Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

render html in js.erb

$('#comments ul.comments').append("<%= j render(:partial => 'comments/foobar') %>");
 
PREVIOUS NEXT
Tagged: #render #html
ADD COMMENT
Topic
Name
9+1 =