From ee5f500ff832dac67be81875cf98db0cce4677af Mon Sep 17 00:00:00 2001 From: jpl Date: Thu, 9 Feb 2017 16:28:44 +0100 Subject: Refs #2550: updating flash msgs, fixing referential archive links on views --- app/helpers/newapplication_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/helpers/newapplication_helper.rb') diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index e4e0c31a3..42d21105a 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -138,11 +138,11 @@ module NewapplicationHelper end elsif action == :archive unless item.archived? - content_tag :li, link_to(t("actions.#{action}"), polymorph_url) + content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put) end elsif action == :unarchive if item.archived? - content_tag :li, link_to(t("actions.#{action}"), polymorph_url) + content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put) end else content_tag :li, link_to(t("actions.#{action}"), polymorph_url) -- cgit v1.2.3