how can i authenticate users out of rails with authlogic?

authlogic, ruby

Solution

From: http://rdoc.info/projects/binarylogic/authlogic

require "authlogic/test_case" # include at the top of test_helper.rb
setup :activate_authlogic # run before tests are executed
UserSession.create(users(:whomever)) # logs a user in

Problem

In my system, users registering via rails website. I have to authenticate users from a custom application server written in ruby. error messsage: ``` You must activate the Authlogic::Session::Base.controller with a controller object before creating objects (Authlogic::Session::Activation::NotActivatedError) ```

Original source