8 lines
313 B
Plaintext
8 lines
313 B
Plaintext
$('#answers').append('<% @answers.each do |a|
|
|
%><%= j render 'shared/answerbox', a: a
|
|
%><% end %>');
|
|
<% if @answers.next_page %>
|
|
$('#pagination').html('<%= j will_paginate @answers, renderer: BootstrapPagination::Rails, page_links: false %>');
|
|
<% else %>
|
|
$('#pagination, #load-more-btn').remove();
|
|
<% end %> |