I have a cryptic problem regarding modules defined in the dir lib directory
I have two files
#lib/authentication.rb module Authentication end #lib/test_module.rb module TestModule end
In my application controller there is
class ApplicationController < ActionController::Base include Authentication include TestModule end
Authentication module loads correctly, but TestModule fails
I get "uninitialized constant ApplicationController :: TestModule"
I'm at a dead end ... anyone?
EDIT: Does anyone know where I could debug this?
include ruby-on-rails
stellard
source share