Fix poll_path links to adding id param

This commit is contained in:
Bertocq
2017-10-08 23:28:01 +02:00
committed by Javi Martín
parent e3b16230e6
commit 501fe9b682

View File

@@ -49,7 +49,7 @@
<% elsif poll.stats_enabled? %>
<%= link_to poll.name, stats_poll_path(poll) %>
<% else %>
<%= link_to poll.name, poll_path(poll.slug) %>
<%= link_to poll.name, poll_path(id: poll.slug) %>
<% end %>
</h4>
<%= poll_dates(poll) %>
@@ -72,7 +72,7 @@
</div>
<div class="small-12 medium-3 column table" data-equalizer-watch>
<div class="table-cell align-middle">
<%= link_to poll_path(poll.slug), class: "button hollow expanded" do %>
<%= link_to poll_path(id: poll.slug), class: "button hollow expanded" do %>
<% if poll.expired? %>
<%= t("polls.index.participate_button_expired") %>
<% else %>