Where can I get "authenticate_with_http_basic"?

Hi,

I just installed Rails 2.0.2

[root@mymachine easyx]# ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
[root@mymachine easyrx]# gem install rails --include-dependencies
Need to update 16 gems from http://gems.rubyforge.org
................
complete
Successfully installed rails-2.0.2
[root@remandev easyrx]#

But I'm getting this error in my restful_authentication plugin:

NoMethodError in RegisterController#start
undefined method `authenticate_with_http_basic' for
#<RegisterController:0xb7578750>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
/usr/local/apache2/htdocs/easyrx/lib/authenticated_system.rb:102:in
`login_from_basic_auth'
/usr/local/apache2/htdocs/easyrx/lib/authenticated_system.rb:12:in
`current_user'
/usr/local/apache2/htdocs/easyrx/lib/authenticated_system.rb:6:in
`logged_in?'
/usr/local/apache2/htdocs/easyrx/app/controllers/
register_controller.rb:41:in `start'

How can I troubleshoot this? Below is the code for my
autehnticated_system.rb file, installed by the plugin. - Dave

====================begin
authenticated_system.rb============================
module AuthenticatedSystem
  protected
    # Returns true or false if the user is logged in.
    # Preloads @current_user with the user model if they're logged in.
    def logged_in?
      current_user != :false
    end

    # Accesses the current user from the session. Set it to :false if
login fails
    # so that future calls do not hit the database.
    def current_user
      @current_user ||= (login_from_session || login_from_basic_auth

login_from_cookie || :false)

    end

    # Store the given user id in the session.
    def current_user=(new_user)
      session[:user_id] = (new_user.nil? || new_user.is_a?(Symbol)) ?
nil : new_user.id
      @current_user = new_user || :false
    end

    # Check if the user is authorized

Is RAILS_GEM_VERSION (in environment.rb) is pointing to an older
version of Rails? That could be the source of your troubles.

That was it. RAILS_GEM_VERSION was pointing to 1.2.

5 stars, - Dave