This project is archived and is in readonly mode.
cryptic "Routing Error" when ApplicationController has a bug
Reported by James Healy | February 5th, 2010 @ 02:51 PM | in 3.0.2
In a brand new, empty rails 3.0.0.beta app that has the following application controller:
class ApplicationController < ActionController::Base
include ModuleThatDoesntExist
protect_from_forgery
end
With the following concrete controller:
class FooController < ApplicationController
def index
render :text => "Bar"
end
end
... and these routes:
Rails3test::Application.routes.draw do |map|
root :to => "foo#index"
end
Accessing the root URL returns a "Routing Error: No route matches '/'" message instead of a more helpful error about ModuleThatDoesntExist not being found. This can make debugging the upgrade to rails3 tricky, suggesting developers look in the wrong place for the underlying issue.
Comments and changes to this ticket
-
José Valim February 6th, 2010 @ 10:11 AM
- Assigned user set to josh
- Milestone cleared.
-
Repository February 6th, 2010 @ 10:54 AM
(from [4d177d46d95d77e06c88241c3bf809945fbd3a92]) Routes should not swallow all NameErrors [#3862 status:resolved]. http://github.com/rails/rails/commit/4d177d46d95d77e06c88241c3bf809...
-
josh February 11th, 2010 @ 05:07 AM
- State changed from new to resolved
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
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
Referenced by
- 3862 cryptic "Routing Error" when ApplicationController has a bug (from [4d177d46d95d77e06c88241c3bf809945fbd3a92]) Routes ...