Bug #1211
@content_for_xxx deprecated since Rails 2.0
| Status : | Closed | Start : | ||
| Priority : | Normal | Due date : | ||
| Assigned to : | Cyril Mougel | % Done : | 0% |
|
| Category : | frontend | |||
| Target version : | 5.2 | |||
| Resolution : | fixed |
Description
Hi,
Since Rails 2.0, the content_for method is use by a yield call in layout. No need @content_for_xxx.
This explain is in documentation of content_forr1.
So I made a patch to replace all call to @content_for_xxx by a yield :xxx.
r1 : http://api.rubyonrails.com/classes/ActionView/Helpers/CaptureHelper.html#M001069
