get this message after following the instructions detailed at
http://rubycas-client.rubyforge.org/files/README_txt.html:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:105:in `const_missing': uninitialized
constant ApplicationController::CASClient (NameError)
here is a snippet of my environment.rb, and yes, all of the CAS code
is at the vERY BOTTOM of the file:
# Note: If Rails complains about missing constants, try adding this
before
# the CASClient configuration:
require 'casclient'
require 'casclient/frameworks/rails/filter'
# Enable CAS Authentication (make sure that you put it at the bottom
of the file,
# after the Rails Initializer):
CASClient::Frameworks::Rails::Filter.configure(
:cas_base_url => "
https://login.up.edu/cas/"
)
and here is my entire applications_controller.rb:
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
protect_from_forgery # See
ActionController::RequestForgeryProtection for details
# Since we want to protect the entire Rails application (rather than
just some
# subset of controllers), we will add the following filter to our
# ApplicationController:
before_filter CASClient::Frameworks::Rails::Filter
# Scrub sensitive parameters from your log
# filter_parameter_logging :password
end
any idea as to why i am seeing this error? everything seems
straightforward enough :-/
cheers,
daVe