Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

render partial in js.erb

$('#comments ul.comments').append("<%= escape_javascript render(:partial => 'comments/single', :locals => { :c => @comment }) %>");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #render #partial
ADD COMMENT
Topic
Name
8+3 =