Migration from the "Restful Authentication" to "Authlogic"

I am using Authlogic for authentication.
Previously our application having a "Restful Authentication". We have
users who are created by using the "Restful Authentication".

My problem is these users will not able to login with Authlogic as the
password encryption methods are different for both and I am getting
"Password not valid" error.
So I searched for that and I got the solution like this:- Add following
lines in the users.rb
"# app/models/user.rb
class User < ActiveRecord::Base
  acts_as_authentic do |c|
    c.act_like_restful_authentication = true
Here is the link that I got the solution:-


By adding the code in the users.rb the existing users are able to login
but whenever I am creating a new user, it is not allowing me to log in.
It is giving me error "Password not valid"

Can anyone tell me how should I fix this?

It is very urgent.

Tushar Gandhi.