omg.
solved, i googled one more time
http://stackoverflow.com/questions/4633077/how-to-use-different-authentication-keys-for-two-devise-models
On May 18, 8:47 pm, "Ivan K."
<div...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m using this new gem active_admin with devise. I followed this
wikihttps://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-s...
> for regular users to let them sign in using username/email. And
it''s
> working for regular User, but now i can''t sign in as AdminUser. I
> guess it''s because of this line in config/initializers/devise.rb:
> config.authentication_keys = [ :login ]
> How can i specify authentication_keys just for AdminUser?
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.