This project is archived and is in readonly mode.

#4563 ✓resolved
Darcy Laycock

Patch for incorrect template choice in ActionController::Responder

Reported by Darcy Laycock | May 9th, 2010 @ 01:30 PM

The current head version of the bundled ActionController::Responder has a bug
that causes it to render new even if the method is put when the method is overriden.

This was caused by recent (well, Rails 3.0.0.beta3) changes that introduced
request.request_method and it's counterparts alongside request.method, the former
being equivalent to the old version of the latter. Unfortunately, in this change
the responder didn't get updated to use the correct method (request_method_symbol
versus the incorrect method_symbol).

The attached patch fixes this and includes tests that reproduce the bug. It applies
cleanly on master as of May 9th, 2010.

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>

Pages