This project is archived and is in readonly mode.
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
-
Arthur Carlsson February 14th, 2010 @ 10:11 AM
- Tag changed from 3.0 to 3.0pre
-
José Valim February 16th, 2010 @ 09:33 PM
- State changed from new to resolved
- Assigned user set to José Valim
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>