From 5118bd246b928c098ed76e3fa6e1066205302942 Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Wed, 19 Jun 2019 16:25:46 +0100 Subject: [PATCH] Replace deprecated link_to_function with link_to link_to_function is no longer present in Rails, replaced it with a link_to call with an onclick attrib instead --- app/views/layouts/application.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index f3153bdea..5c82d1d94 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -31,7 +31,7 @@ - if message = flash[type] - type = :warning if type == :alert %div.section#flash{:class => type} - .close= link_to_function icon(:close), "jQuery('#flash').hide()" + .close= link_to icon(:close), '#', onclick: "jQuery('#flash').hide(); return false;" %p = icon(type) = h message