# Migrating from login\_engine to AAA

**URL:** <https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534>\
**Category:** Rails\
**Created:** [May 7, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534 "2007-05-07T16:55:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bartz](https://www.ruby-forum.com/u/bartz)\
**Post date:** [May 7, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534/1 "2007-05-07T16:55:30Z")

</div>

Hello all,

I’m currently upgrading my app to Rails 1.2, and the login\_engine has  
been deprecated for that version.  
Is there an easy way to upgrade my existing user table (especially  
passwords) for use with acts\_as\_authenticated?

thanks in advance.

---

<div class="post-metadata">

**Author:** ![bartz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bartz](https://www.ruby-forum.com/u/bartz)\
**Post date:** [May 14, 2007, 11:56am UTC](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534/2 "2007-05-14T11:56:28Z")

</div>

Bart Z. wrote:

> Hello all,
> 
> I’m currently upgrading my app to Rails 1.2, and the login\_engine has  
> been deprecated for that version.  
> Is there an easy way to upgrade my existing user table (especially  
> passwords) for use with acts\_as\_authenticated?
> 
> thanks in advance.

Nobody?..

---

<div class="post-metadata">

**Author:** ![bartz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bartz](https://www.ruby-forum.com/u/bartz)\
**Post date:** [May 30, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534/3 "2007-05-30T23:44:41Z")

</div>

I’m in the process of upgrading a rails app from login\_engine to acts  
as authenticated. I believe that the user table from login\_engine is  
compatible with AAA. I am having one problem though. When I go to run  
the AAA generator I get the following error:

bash-# script/generate authenticated --svn user account

./script/…/config/…/vendor/plugins/engines/lib/engines.rb:355:in  
`initialize': Cannot find the engine 'login' in either /vendor/plugins/ login, /vendor/plugins/login_engine or /vendor/plugins/login_bundle. (RuntimeError) from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:172:in `new’  
from ./script/…/config/…/vendor/plugins/engines/lib/  
engines.rb:172:in `start_engine' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:141:in `start’  
from ./script/…/config/…/vendor/plugins/engines/lib/  
engines.rb:140:in `each' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:140:in `start’  
from ./script/…/config/…/config/environment.rb:56  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:  
27:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in `require’  
from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/  
generate.rb:1  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:  
27:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in `require’  
from script/generate:3

I have already un-installed the login engine with the following  
command:

bash-# script/plugin remove login\_engine

However, it looks like the generator authenticated is still confused.  
I’m looking for a solution to this problem but haven’t found one yet.

On 14 May, 02:56, Bart Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![bartz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bartz](https://www.ruby-forum.com/u/bartz)\
**Post date:** [May 31, 2007, 1:45am UTC](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534/4 "2007-05-31T01:45:50Z")

</div>

Ok so what you have to to is add a column to your existing users table  
called crypted\_password. Also the problems I was having steamed from  
lines in config/environment specific to login\_engin. I commented those  
lines out and things started working.

On May 14, 2:56 am, Bart Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![bartz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bartz](https://www.ruby-forum.com/u/bartz)\
**Post date:** [May 31, 2007, 12:15am UTC](https://www.ruby-forum.com/t/migrating-from-login-engine-to-aaa/103534/5 "2007-05-31T00:15:45Z")

</div>

I completely removed and re-installed acts as authenticated and now  
I’m getting the following error:

bash-# script/generate authenticated --svn user account

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/  
dependencies.rb:123:in `const_missing': uninitialized constant LoginEngine (NameError) from ./script/../config/../vendor/plugins/user_engine/lib/ user_engine.rb:46 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in`gem\_original\_require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:  
27:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:147:in`require’  
from script/…/config/…/vendor/plugins/user\_engine/  
init\_engine.rb:27:in `start_engine' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:201:in`start\_engine’  
from ./script/…/config/…/vendor/plugins/engines/lib/  
engines.rb:141:in `start' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:140:in`each’  
from ./script/…/config/…/vendor/plugins/engines/lib/  
engines.rb:140:in `start' from ./script/../config/../config/environment.rb:56 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in`gem\_original\_require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:  
27:in `require' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/ generate.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in`gem\_original\_require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:  
27:in `require’  
from script/generate:3
