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 -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -