Merge pull request #29884 from padi/update_rails_5_upgrade_guide
Updates Rails upgrade guide on `ActionView::Helpers::RecordTagHelper`
This commit is contained in:
commit
81d7b9854f
|
@ -1,7 +1,7 @@
|
||||||
module ActionView
|
module ActionView
|
||||||
module Helpers
|
module Helpers
|
||||||
module RecordTagHelper
|
module RecordTagHelper
|
||||||
def div_for(*)
|
def div_for(*) # :nodoc:
|
||||||
raise NoMethodError, "The `div_for` method has been removed from " \
|
raise NoMethodError, "The `div_for` method has been removed from " \
|
||||||
"Rails. To continue using it, add the `record_tag_helper` gem to " \
|
"Rails. To continue using it, add the `record_tag_helper` gem to " \
|
||||||
"your Gemfile:\n" \
|
"your Gemfile:\n" \
|
||||||
|
@ -9,7 +9,7 @@ module ActionView
|
||||||
"Consult the Rails upgrade guide for details."
|
"Consult the Rails upgrade guide for details."
|
||||||
end
|
end
|
||||||
|
|
||||||
def content_tag_for(*)
|
def content_tag_for(*) # :nodoc:
|
||||||
raise NoMethodError, "The `content_tag_for` method has been removed from " \
|
raise NoMethodError, "The `content_tag_for` method has been removed from " \
|
||||||
"Rails. To continue using it, add the `record_tag_helper` gem to " \
|
"Rails. To continue using it, add the `record_tag_helper` gem to " \
|
||||||
"your Gemfile:\n" \
|
"your Gemfile:\n" \
|
||||||
|
|
|
@ -276,6 +276,16 @@ You can now just call the dependency once with a wildcard.
|
||||||
<% # Template Dependency: recordings/threads/events/* %>
|
<% # Template Dependency: recordings/threads/events/* %>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `ActionView::Helpers::RecordTagHelper` moved to external gem (record_tag_helper)
|
||||||
|
|
||||||
|
`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:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
gem 'record_tag_helper', '~> 1.0'
|
||||||
|
```
|
||||||
|
|
||||||
|
See [#18411](https://github.com/rails/rails/pull/18411) for more details.
|
||||||
|
|
||||||
### Removed Support for `protected_attributes` Gem
|
### Removed Support for `protected_attributes` Gem
|
||||||
|
|
||||||
The `protected_attributes` gem is no longer supported in Rails 5.
|
The `protected_attributes` gem is no longer supported in Rails 5.
|
||||||
|
|
Loading…
Reference in New Issue