This project is archived and is in readonly mode.

#3862 ✓resolved
James Healy

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

With the following concrete controller:

class FooController < ApplicationController
  def index
    render :text => "Bar"

... and these routes:

Rails3test::Application.routes.draw do |map|
  root :to => "foo#index"

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

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=""></a>


Referenced by