Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2182 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

ActionView::Helpers::CaptureHelper.capture does not work when called from rxml files

Reported by: Brian Takita Assigned to: David
Priority: normal Milestone:
Component: ActionPack Version: 0.13.1
Severity: normal Keywords: fd CaptureHelper capture XmlMarkup erb
Cc:

Description

The capture method seems to be geared toward erb and not XmlMarkup.

The following error is raised when calling a method that uses capture via. undefined local variable or method `_erbout' for #<ActionView::Base:0x38bf688>

Change History

09/13/05 19:03:56 changed by Brian Takita

The capture method seems to be geared toward erb and not XmlMarkup.

The following error is raised when calling a method that uses capture via XmlMarkup.

undefined local variable or method `_erbout' for #<ActionView::Base:0x38bf688>

09/14/05 11:56:20 changed by Brian Takita

It seems the capture method would be more useful if it were also or only to capture the return value from the block. This would make it more source agnostic (rather than depending on erb) by reducing coupling.

12/19/05 20:23:01 changed by Brian Takita

Patch 3287 fixes this issue. http://dev.rubyonrails.org/ticket/3287

12/22/05 18:09:50 changed by david

  • keywords changed from CaptureHelper capture XmlMarkup erb to fd CaptureHelper capture XmlMarkup erb.

03/16/06 02:40:13 changed by david

  • status changed from new to closed.
  • resolution set to fixed.