diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-07 14:38:41 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-07 14:38:41 +0200 |
commit | d5623dc634dc6e8ce8294485e1fdb6adb5f16271 (patch) | |
tree | 0f94b7dc2ed41baa9d007601862ac2c9451a735b /app/views | |
parent | 9e5ab1ebd9a80a78f9daaf38a9ee244e60b8af1c (diff) | |
download | rails-d5623dc634dc6e8ce8294485e1fdb6adb5f16271.tar.gz rails-d5623dc634dc6e8ce8294485e1fdb6adb5f16271.tar.bz2 rails-d5623dc634dc6e8ce8294485e1fdb6adb5f16271.zip |
Provide to_html rendering within a layout and use that as the to_s default
I like the idea of thinking about the rendering as happening within a
layout. Since that’s basically what this wrapper is. Thoughts @javan?
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/action_text/content/_layout.html.erb | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ +<div class="trix-content"> + <%= document %> +</div> |