I’m working on a very simple project, and I need to add
authentification (I choose login_generator). So, i’ve added the
required things in application.rb, the require_dependency and the
include stuff. In the controller which requires auth, I’ve added
before_filter :login_required. Exactly what they say in the
The problem is that I get “undefined method `login_required’ for
If I define a function named “test” in application.rb and if I call it
from drugs_controller.rb, I get the same message.
Tell me if I’m wrong, but the controllers normally inherits from
ApplicationController defined in application.rb, no ? Why the
functions are not accessible even if they are protected or public ?
Btw, i’m using Rails 2.0.1.
Thanks in advance