diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-05 16:20:55 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-05 16:20:55 +0200 |
commit | e04093386705aa8c00e5162614a9d0122cd31891 (patch) | |
tree | 34fe96fd7ab24273466fc3e5e37462a20e8bcc66 /README.md | |
parent | 735734647e119b1ef13a321ad1381dab9b2f22e2 (diff) | |
download | rails-e04093386705aa8c00e5162614a9d0122cd31891.tar.gz rails-e04093386705aa8c00e5162614a9d0122cd31891.tar.bz2 rails-e04093386705aa8c00e5162614a9d0122cd31891.zip |
We are leveling up the text_area, not the text_field, so match names
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,7 +41,7 @@ Assumes a Rails 5.2+ application with Active Storage and Webpacker installed. end ``` -1. Replace form `text_area`s with `rich_text_field`s: +1. Replace form `text_area`s with `rich_text_area`s: ```erb <%# app/views/messages/_form.html.erb %> @@ -49,7 +49,7 @@ Assumes a Rails 5.2+ application with Active Storage and Webpacker installed. … <div class="field"> <%= form.label :content %> - <%= form.rich_text_field :content %> + <%= form.rich_text_area :content %> </div> … <% end %> |