Thanks, I've added this fix in the edge branch. On Sun, Apr 5, 2009 at 11:35 PM, sprite <[email protected]> wrote:
> > def access_denied > respond_to do |accepts| > accepts.html do > store_location > redirect_to(:controller => '/sessions', :action => 'new') > and return false > end > accepts.xml do > headers["Status"] = "Unauthorized" > headers["WWW-Authenticate"] = %(Basic realm="Web Password") > render :text => "Could't authenticate you", :status => '401 > Unauthorized' > end > accepts.js do > store_location > render :update do |page| > page.redirect_to(:controller => '/sessions', :action => > 'new') and return false > end > end > end > false > end > > > I needed this code for it to redirect on ajax requests when not logged > in. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" 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/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
