Hi all, i installed Act_as_Authenticated plugin yesterday, everything seems fine: trying out the index, divert me to the login screen, i register and login. but when i try http://localhost:3000/account/logout, it didn''t work, after the action been executed, it takes me back to the index as i m logged in. i try to clean the localhost cookie from my firefox, and delete those files in the directory of tem/sessions, but it''s still acting like i m logged in. what is the problem? can anyone give me some hints? thanks. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
please forget my stupid question, i found out what the problem is: redirect_to(:action => ''signup'') unless logged_in? || User.count > 0 after i created a user, it''s always going to redirect me. silly me. On Jul 11, 2:39 pm, Mister Yu <eryan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > i installed Act_as_Authenticated plugin yesterday, everything seems > fine: trying out the index, divert me to the login screen, i register > and login. > > but when i tryhttp://localhost:3000/account/logout, it didn''t work, > after the action been executed, it takes me back to the index as i m > logged in. > > i try to clean the localhost cookie from my firefox, and delete those > files in the directory of tem/sessions, but it''s still acting like i m > logged in. > > what is the problem? can anyone give me some hints? > > thanks.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Akshay Surve
2007-Aug-01 11:02 UTC
Re: Problem with Acts as Authenticated not able to logout
Is this plugin by default meant for a single user system ? Surprising ! On Jul 11, 7:26 pm, Mister Yu <eryan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> please forget my stupid question, i found out what the problem is: > redirect_to(:action => ''signup'') unless logged_in? || User.count > 0 > > after i created a user, it''s always going to redirect me. > > silly me. > > On Jul 11, 2:39 pm, Mister Yu <eryan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi all, > > > i installed Act_as_Authenticated plugin yesterday, everything seems > > fine: trying out the index, divert me to the login screen, i register > > and login. > > > but when i tryhttp://localhost:3000/account/logout, it didn''t work, > > after the action been executed, it takes me back to the index as i m > > logged in. > > > i try to clean the localhost cookie from my firefox, and delete those > > files in the directory of tem/sessions, but it''s still acting like i m > > logged in. > > > what is the problem? can anyone give me some hints? > > > thanks.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick Olson
2007-Aug-01 12:52 UTC
Re: Problem with Acts as Authenticated not able to logout
On 8/1/07, Akshay Surve <akshay.surve-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is this plugin by default meant for a single user system ? > Surprising !http://svn.techno-weenie.net/projects/plugins/acts_as_authenticated/generators/authenticated/templates/controller.rb That line is on the #index action, not the #logout action. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---