Forum: Ruby on Rails MSIE doesn't work with format.html

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
zero0x (Guest)
on 2009-01-29 14:48
(Received via mailing list)
Hey there ..

This is part of restful_authentication:

def access_denied
      respond_to do |format|
        format.html do
          store_location
          redirect_to :controller => "session", :action => "new"
        end
        format.any do
          request_http_basic_authentication 'Web Password'
        end
      end
    end


the thing is, it uses http basic auth when using MSIE .. It's like
MSIE doesn't request HTML but ANY instead ..

If I do this

def access_denied
      redirect_to :controller => "session", :action => "new"
    end

It's all fine ..


Is it some kind of bug or something?
This topic is locked and can not be replied to.