ruby - How to install AuthLogic plugin for rails 2.3.5? -
i following ruby on rails tutorial in book uses acts authenticated, seems no longer supported. searching , came across so post recommends couple of different alternatives doing user authentication in rails applications. think authlogic looks choice. using rails 2.3.5 , ruby 1.8.7.
the authlogic readme section states following:
** please note latest version compatible rails 3 only. rails 2 should use version 2.x.x **
however, when scrolling down section installing gem or plugin, gives following examples:
rails 3:
$ sudo gem install authlogic
rails 2:
$ sudo gem install authlogic --version=2.1.6
or install plugin:
script/plugin install git://github.com/binarylogic/authlogic.git
i want install plugin, rather gem, need 2.3.5, not 3. can install plugin version in same way shows how install gem version? example:
script/plugin install git://github.com/binarylogic/authlogic.git --version=2.3.5
if not how done, please explain me how it?
thanks!
i reconsider using plugin , instead setup bundler in project. gemfile line gem 'authlogic', '2.1.6'
. if concerned packaging libraries project can bundle pack
include gems project.
anyway, following plugin install command should work.
script/plugin install git://github.com/binarylogic/authlogic.git -r 'tag v2.1.6'
Comments
Post a Comment