Bug #1211

@content_for_xxx deprecated since Rails 2.0

Added by Cyril Mougel 279 days ago. Updated 21 days ago.

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

content_for.patch (2.9 KB) Cyril Mougel, 02/26/2008 08:33 PM

History

11/10/2008 07:25 AM - neuro -

  • Status changed from New to Closed
  • Assigned to changed from scott - to Cyril Mougel
  • Target version set to 5.2
  • Resolution set to fixed

Fixed with upgrade to Rails 2.2

Also available in: Atom PDF