diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 47841816c..9760606aa 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -26,6 +26,10 @@ nav_order: 5 *Reegan Viljoen* +* Updates ActionText compatibility documentation to reference `rich_textarea_tag` for Rails 8.0 support. + + *Alvin Crespo* + ## 3.20.0 * Allow rendering `with_collection` to accept an optional `spacer_component` to be rendered between each item. diff --git a/docs/compatibility.md b/docs/compatibility.md index ded7dfd13..37653886e 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -37,12 +37,12 @@ With the monkey patch disabled, use `render_component` (or `render_component_to ## ActionText -Using `rich_text_area` from ActionText in a ViewComponent will result in this error: +Using `rich_textarea` from ActionText in a ViewComponent will result in this error: -`undefined method "rich_text_area_tag"` +`undefined method "rich_textarea_tag"` This is due to ViewComponent not having access to the helpers it needs via ActionText. As a workaround, add the following to your component (or base component): ```ruby -delegate :rich_text_area_tag, to: :helpers +delegate :rich_textarea_tag, to: :helpers ```