From 65fd88ef32519a986c8481d3ceceb84dd10f9f73 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Tue, 24 Oct 2017 08:19:43 +0200 Subject: [PATCH] Use poll slug on stats and results paths --- app/views/polls/_poll_subnav.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/polls/_poll_subnav.html.erb b/app/views/polls/_poll_subnav.html.erb index ec4f7590e..28340b9b6 100644 --- a/app/views/polls/_poll_subnav.html.erb +++ b/app/views/polls/_poll_subnav.html.erb @@ -8,7 +8,7 @@

<%= t("polls.show.results_menu") %>

<% else %> -
  • <%= link_to t("polls.show.results_menu"), results_poll_path(@poll) %>
  • +
  • <%= link_to t("polls.show.results_menu"), results_poll_path(id: @poll.slug) %>
  • <% end %> <% end %> @@ -18,7 +18,7 @@

    <%= t("polls.show.stats_menu") %>

    <% else %> -
  • <%= link_to t("polls.show.stats_menu"), stats_poll_path(@poll) %>
  • +
  • <%= link_to t("polls.show.stats_menu"), stats_poll_path(id: @poll.slug) %>
  • <% end %> <% end %> @@ -27,7 +27,7 @@

    <%= t("polls.show.info_menu") %>

    <% else %> -
  • <%= link_to t("polls.show.info_menu"), poll_path(@poll) %>
  • +
  • <%= link_to t("polls.show.info_menu"), poll_path(id: @poll.slug) %>
  • <% end %>