From bdff6f4110abb7c82eeee008f1a566808cfa4895 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Fri, 19 Dec 2014 23:05:45 +0100 Subject: [PATCH] the journey of fixes has finally an end --- app/views/user/questions.js.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %>');