ruby - Using Authlogic in a non-Rails environment -


what best way use authlogic in non-rails environment? in other words, how validate credentials within ruby script?

when run console, self refers "main" object, hence authlogic initialization pointless:

2.3.1 :009 > authlogic::session::base.controller = authlogic::controlleradapters::railsadapter.new(self) 

it expects initialized controller, because needs request , ip , other stuff. strange see, because usersession model , should not coupled controller.

any suggestions on how validate credentials?


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -