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

Ticket #541 (closed enhancement: duplicate)

Opened 5 years ago

Last modified 5 years ago

Rendering template to string

Reported by: evl@lunarlounge.org Assigned to: David
Priority: normal Milestone:
Component: ActionPack Version: 0.9.4.1
Severity: normal Keywords: render string
Cc:

Description

Currently there is no way of rendering a template to a string, this is e.g needed in my case where I take the rendered result and run it through a pdf generator.

Change History

01/25/05 16:06:51 changed by Eric Anderson <eric@afaik.us>

  • component changed from ActiveRecord to ActionPack.

What about adding a filter. In your example you could create a "after_filter" that takes the content of the page and generates the PDF. As to rendering a template to a string could you not just use ERB directly?

02/15/05 14:26:27 changed by david

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

Se #479