This project is archived and is in readonly mode.
Rails metal: Throw an exception to continue the dispatch chain
-
Magnus Bergmark
I am in favor of this. Not just because it makes sense, but also because of such a solution would reveal much more intent than returning something with the "magic value" 404.
-
Cheah Chu Yeow
I agree that returning a magic 404 feels wrong, but I'm not sure if we should affect the change in Rails 2.x in the interests of not breaking existing applications.
In Rails edge, a "X-Cascade" header with a value of "pass" is required to continue the Metal chain.
i.e.
[404, { 'Content-Type' => 'text/html', 'X-Cascade' => 'pass' }, ['Not Found']]
This feels sufficient to me, would you be happy with that? In fact, this undocumented change had me struggling for a few hours when trying to upgrade an app to Rails 3. I'm going to fix the documentation bug.
-
Santiago Pastorino
- State changed from new to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale