diff --git a/app/views/user/questions.js.erb b/app/views/user/questions.js.erb index b444b715..01344836 100644 --- a/app/views/user/questions.js.erb +++ b/app/views/user/questions.js.erb @@ -1,5 +1,5 @@ -$('#questions').append('<% @questions.each do |a| - %><%= j render 'shared/question', a: a +$('#questions').append('<% @questions.each do |q| + %><%= j render 'shared/question', q: q %><% end %>'); <% if @questions.next_page %> $('#pagination').html('<%= j will_paginate @questions, renderer: BootstrapPagination::Rails, page_links: false %>');