From d5623dc634dc6e8ce8294485e1fdb6adb5f16271 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 7 Jun 2018 14:38:41 +0200 Subject: Provide to_html rendering within a layout and use that as the to_s default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I like the idea of thinking about the rendering as happening within a layout. Since that’s basically what this wrapper is. Thoughts @javan? --- app/views/action_text/content/_layout.html.erb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 app/views/action_text/content/_layout.html.erb (limited to 'app/views/action_text') diff --git a/app/views/action_text/content/_layout.html.erb b/app/views/action_text/content/_layout.html.erb new file mode 100644 index 0000000000..be3ca295c8 --- /dev/null +++ b/app/views/action_text/content/_layout.html.erb @@ -0,0 +1,3 @@ +
+ <%= document %> +
-- cgit v1.2.3