Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

cryptic "Routing Error" when ApplicationController has a bug

#3862

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.

Reported by James Healy · February 5th, 2010 @ 02:51 PM

State: resolved
Milestone: 3.0.2
Assigned to: josh josh
Importance: Low