Skip to content

Commit e85b23b

Browse files
alvincrespoSponejoelhawksley
authored
Adjust rich_text_area to rich_textarea for Rails 8 compatibility (#2180)
* Adjust rich_text_area to rich_textarea for Rails 8 compatibility * PR feedback - implementing missed update Co-authored-by: Hans Lemuet <[email protected]> * Adds CHANGELOG entry for ActionText / Rails 8.0 --------- Co-authored-by: Hans Lemuet <[email protected]> Co-authored-by: Joel Hawksley <[email protected]>
1 parent 3392a41 commit e85b23b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ nav_order: 5
2626

2727
*Reegan Viljoen*
2828

29+
* Updates ActionText compatibility documentation to reference `rich_textarea_tag` for Rails 8.0 support.
30+
31+
*Alvin Crespo*
32+
2933
## 3.20.0
3034

3135
* Allow rendering `with_collection` to accept an optional `spacer_component` to be rendered between each item.

docs/compatibility.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ With the monkey patch disabled, use `render_component` (or `render_component_to
3737

3838
## ActionText
3939

40-
Using `rich_text_area` from ActionText in a ViewComponent will result in this error:
40+
Using `rich_textarea` from ActionText in a ViewComponent will result in this error:
4141

42-
`undefined method "rich_text_area_tag"`
42+
`undefined method "rich_textarea_tag"`
4343

4444
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):
4545

4646
```ruby
47-
delegate :rich_text_area_tag, to: :helpers
47+
delegate :rich_textarea_tag, to: :helpers
4848
```

0 commit comments

Comments
 (0)