Gleb M. wrote:
> I am having the same problem
> Has anyone found the solution yet?
Hi Gleb,
Finally I found the problem, on my users DB table I was using an
atipycal name for user and password fields (usuUser usuPass..) and
authlogic doesn't like it...
The solution was to create tree new fields in my users table,
crypted_password varchar(255)
password_field varchar(255)
persistence_token varchar(255)
I also changed "usuUser" to "username"
In my users model I wrote:
acts_as_authentic do |c|
c.login_field = :username
c.email_field = :usuMail (her your mail field)
end
Hope it helps you !!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---