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
Post a Comment