Skip to content

Commit a9c7eae

Browse files
committed
Updates Rails upgrade guide for 4.2 to 5.0 regarding the removal of ActionView::Helpers::RecordTagHelper
1 parent 58f10a3 commit a9c7eae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

guides/source/upgrading_ruby_on_rails.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,16 @@ You can now just call the dependency once with a wildcard.
276276
<% # Template Dependency: recordings/threads/events/* %>
277277
```
278278

279+
### `ActionView::Helpers::RecordTagHelper` moved to external gem (record_tag_helper)
280+
281+
`content_tag_for` and `div_for` has been removed in favor of just using `content_tag`. To continue using it, add the `record_tag_helper` gem to your Gemfile:
282+
283+
```ruby
284+
gem 'record_tag_helper', '~> 1.0'
285+
```
286+
287+
See [#18411](https://github.com/rails/rails/pull/18411) for more details.
288+
279289
### Removed Support for `protected_attributes` Gem
280290

281291
The `protected_attributes` gem is no longer supported in Rails 5.

0 commit comments

Comments
 (0)