From 5d5b9d00e02ee9d55345c77751470087d44d7033 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 30 Jul 2015 18:43:11 +0200 Subject: [PATCH] adds ajax to vote links [#47] --- app/views/votes/_votes.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/votes/_votes.html.erb b/app/views/votes/_votes.html.erb index bde222092..ddf2f9d5b 100644 --- a/app/views/votes/_votes.html.erb +++ b/app/views/votes/_votes.html.erb @@ -1,7 +1,7 @@
- <%= link_to debate_votes_path(@debate, value: 'yes'), class: 'in-favor', method: "post" do %> + <%= link_to debate_votes_path(@debate, value: 'yes'), class: 'in-favor', method: "post", remote: true do %> <%= percentage('likes', @debate) %> <% end %> @@ -10,7 +10,7 @@
- <%= link_to debate_votes_path(@debate, value: 'no'), class: 'against', method: "post" do %> + <%= link_to debate_votes_path(@debate, value: 'no'), class: 'against', method: "post", remote: true do %> <%= percentage('dislikes', @debate) %> <% end %>