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.

Calling an undefined method in a controller doesn't raise an error

#3946

When calling an undefined method on a controller class, no error is raised. The routes just stop working.

For example:

class ApplicationController < ActionController::Base
  test123
end

Or:

class PeopleController < ApplicationController
  test123
end

These does not raise a NoMethodFound exception and the log just says "ActionController::RoutingError (No route matches "/people")".
The route does exist in routes.rb of course...
I'm running Ruby 1.9.1.

Reported by Arthur Carlsson · February 13th, 2010 @ 08:40 AM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Arthur Carlsson
    Arthur Carlsson
    • Tag changed from 3.0 to 3.0pre

    February 14th, 2010 @ 10:11 AM

  2. José Valim
    José Valim
    • State changed from new to resolved
    • Assigned user set to José Valim

    February 16th, 2010 @ 09:33 PM