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

Ticket #11396 (new defect)

Opened 7 months ago

Last modified 7 months ago

[PATCH] Correctly set content-type with multiview-style templates

Reported by: guillaume Assigned to: core
Priority: low Milestone: 2.0.3
Component: ActionPack Version: edge
Severity: minor Keywords:
Cc:

Description

When rendering templates like message/index.xml.erb, it is expected to have Content-Type response header set appropriately ("application/xml" in this case) instead of the default one, "test/html" . This patch fixes that problem. A test case is included.

Attachments

content_type_header_correctly_set_with_formatted_templates.diff (1.2 kB) - added by guillaume on 03/22/08 00:00:11.

Change History

03/22/08 00:00:11 changed by guillaume

  • attachment content_type_header_correctly_set_with_formatted_templates.diff added.

03/31/08 21:20:09 changed by halfbyte

+1