diff --git a/actiontext/app/helpers/action_text/tag_helper.rb b/actiontext/app/helpers/action_text/tag_helper.rb index 90a743c0922b0..8b60ebfc129ce 100644 --- a/actiontext/app/helpers/action_text/tag_helper.rb +++ b/actiontext/app/helpers/action_text/tag_helper.rb @@ -11,7 +11,8 @@ module TagHelper # that Trix will write to on changes, so the content will be sent on form submissions. # # ==== Options - # * :class - Defaults to "trix-content" which ensures default styling is applied. + # * :class - Defaults to "trix-content" so that default styles will be applied. + # Setting this to a different value will prevent default styles from being applied. # # ==== Example # diff --git a/guides/source/action_text_overview.md b/guides/source/action_text_overview.md index 211b997e96d0e..a8dfefc7418ee 100644 --- a/guides/source/action_text_overview.md +++ b/guides/source/action_text_overview.md @@ -85,7 +85,7 @@ end **Note:** you don't need to add a `content` field to your `messages` table. -Then refer to this field in the form for the model: +Then use [`rich_text_area`] to refer to this field in the form for the model: ```erb <%# app/views/messages/_form.html.erb %> @@ -114,6 +114,8 @@ class MessagesController < ApplicationController end ``` +[`rich_text_area`]: https://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-rich_text_area + ## Rendering Rich Text content Action Text will sanitize and render rich content on your behalf.