aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-06-05 16:20:55 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-06-05 16:20:55 +0200
commite04093386705aa8c00e5162614a9d0122cd31891 (patch)
tree34fe96fd7ab24273466fc3e5e37462a20e8bcc66 /README.md
parent735734647e119b1ef13a321ad1381dab9b2f22e2 (diff)
downloadrails-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.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 715c60e9c2..2e53935412 100644
--- a/README.md
+++ b/README.md
@@ -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 %>