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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -