# MSIE doesn't work with format.html

**URL:** <https://www.ruby-forum.com/t/msie-doesnt-work-with-format-html/158923>\
**Category:** Rails\
**Created:** [January 29, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/msie-doesnt-work-with-format-html/158923 "2009-01-29T13:48:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zero0x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/c6cbf5/32.png) [@zero0x](https://www.ruby-forum.com/u/zero0x)\
**Post date:** [January 29, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/msie-doesnt-work-with-format-html/158923/1 "2009-01-29T13:48:21Z")

</div>

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?
