I use rails2.3 and restful_authentication-plugin.I use the redirect_back_or_default action like this redirect_back_or_default (''/'') ,that is-it assumes not login now,if login directly,redirect to homepage,if not,redirect back to the previous page.But redirect_back_or_default action always redirects to the homepage despite of the latter situtaion:previous page. I know the fact that if access denys,the store_location should be called by login-required action. But it seems does not works actually.
no one meet this problem?
Have resolved this problem.
Share the solution if you dont mind On Thu, Jun 18, 2009 at 8:17 PM, daociyiyou <cheyu22-/E1597aS9LRv1O+Z8WTAqQ@public.gmane.org> wrote:> > Have resolved this problem. > > >-- Hemali Chauhan Complitech Solutions (complitech.net) --~--~---------~--~----~------------~-------~--~----~ 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 groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---