From 54472852caa5972c91c499d841af6cd5bd30f650 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Fri, 3 Feb 2017 14:26:56 +0100 Subject: [PATCH] changes link to poll on polls with one question --- app/views/polls/_poll_group.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb index 8784de066..a34191415 100644 --- a/app/views/polls/_poll_group.html.erb +++ b/app/views/polls/_poll_group.html.erb @@ -30,7 +30,7 @@
<%= poll_dates(poll) %>
<% if poll.questions.count == 1 %> <% poll.questions.each do |question| %> -

<%= link_to question.title, question_path(question) %>

+

<%= link_to question.title, poll %>

<% end %> <% else %>

<%= link_to poll.name, poll %>