From 57db3c1fbe5f0d5da1184fcfbd0e60c61eabe78a Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Thu, 19 Sep 2019 21:51:06 +0300 Subject: [PATCH] FIX: Properly render server side plugin outlets (#8106) The behavior of the `render` helper method changed in Rails 6 so now the method doesn't render the template and return the output, instead it just returns the file content as-is. Context: https://meta.discourse.org/t/discourse-sitemap-plugin/40348/134?u=osama --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ff7cc872274..9d7b6e4e0a1 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -384,7 +384,7 @@ module ApplicationHelper return "" if erbs.blank? result = +"" - erbs.each { |erb| result << render(file: erb) } + erbs.each { |erb| result << render(inline: File.read(erb)) } result.html_safe end