manager: fix polymorphic route exception when viewing user emails

Since the last Rails update, arguments to polymorphic routes must be
symbols, otherwise an exception is raised.
This commit is contained in:
Pierre de La Morinerie 2021-06-01 11:29:57 +02:00
parent ddfe2f04e9
commit 188b89a3c8

View file

@ -93,7 +93,7 @@ https://www.demarches-simplifiees.fr/users/password/new
Bien cordialement</pre>
<% else %>
<p><strong>Ce compte nest pas activé</strong>. Vous pouvez lui <%= link_to('renvoyer lemail de confirmation', [:resend_confirmation_instructions, namespace, 'user'], method: :post, class: 'button') %>, puis un email. <button class="btn btn-secondary btn-small" onclick="reveal_email('#not-activated')">Voir la suggestion demail</button> </p>
<p><strong>Ce compte nest pas activé</strong>. Vous pouvez lui <%= link_to('renvoyer lemail de confirmation', [:resend_confirmation_instructions, namespace, :user], method: :post, class: 'button') %>, puis un email. <button class="btn btn-secondary btn-small" onclick="reveal_email('#not-activated')">Voir la suggestion demail</button> </p>
<pre class="hidden" id="not-activated">
Bonjour,