Index: generators/authenticated/templates/authenticated_system.rb =================================================================== --- generators/authenticated/templates/authenticated_system.rb (revision 536) +++ generators/authenticated/templates/authenticated_system.rb (revision 540) @@ -67,6 +67,9 @@ store_location redirect_to :controller => '/<%= controller_file_name %>', :action => 'login' end + accepts.js do + render(:update) { |page| page.redirect_to(:controller => '/account', :action => 'login') } + end accepts.xml do headers["Status"] = "Unauthorized" headers["WWW-Authenticate"] = %(Basic realm="Web Password")