This project is archived and is in readonly mode.

#3946 ✓resolved
Arthur Carlsson

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

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

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.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages