This project is archived and is in readonly mode.

#908 ✓wontfix
Roman Le Négrate

Layout MIME type should match the response's

Reported by Roman Le Négrate | August 26th, 2008 @ 11:01 PM | in 2.x

Given layout.html.erb and layout.js.erb, GET /index.js should cause layout.js.erb to be picked as the layout.

This fails to happen if index.js.erb tries to render a partial of another type inside itself (for example: _list.html.erb), in which case layout.html.erb is mistakenly picked.

I attached a failing test covering this bug.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages