# Re: Re\[Rails\] stful\_authentication, Internet Explorer, and unwanted http basic dialog

**URL:** <https://www.ruby-forum.com/t/re-re-rails-stful-authentication-internet-explorer-and-unwanted-http-basic-dialog/142910>\
**Category:** Rails\
**Created:** [July 13, 2008, 10:53am UTC](https://www.ruby-forum.com/t/re-re-rails-stful-authentication-internet-explorer-and-unwanted-http-basic-dialog/142910 "2008-07-13T10:53:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tardate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tardate](https://www.ruby-forum.com/u/tardate)\
**Post date:** [July 13, 2008, 10:53am UTC](https://www.ruby-forum.com/t/re-re-rails-stful-authentication-internet-explorer-and-unwanted-http-basic-dialog/142910/1 "2008-07-13T10:53:11Z")

</div>

I’m glad I found your post Joshua - it saved me quite a bit of time!

To get this to work for me however (IE6), I had to ditch the ||= and do  
straight assignment:

request.format = :html if request.env[‘HTTP\_USER\_AGENT’] =~ /msie/i

Joshua D. wrote:

> the basic authentication dialog, but /users/4.html will correctly
> 
> > ```
> > respond_to do |format|
> > 
> > ```
> > 
> > For some reason Internet Explorer is falling through to format.any -
> > 
> > > I’ve modified the following method of authenticated\_system.rb, but

–  
View this message in context:  
[http://www.nabble.com/Restful\_authentication%2C-Internet-Explorer%2C-and-unwanted-http-basic--dialog-tp18147300p18398601.html](http://www.nabble.com/Restful_authentication%2C-Internet-Explorer%2C-and-unwanted-http-basic--dialog-tp18147300p18398601.html)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![tardate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tardate](https://www.ruby-forum.com/u/tardate)\
**Post date:** [July 13, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/re-re-rails-stful-authentication-internet-explorer-and-unwanted-http-basic-dialog/142910/2 "2008-07-13T12:06:21Z")

</div>

Too funny, I also run into this problem this week. Only IE7 is crapping  
out.

I solved this problem by overwriting the access\_denied method, by  
removing the http\_basic\_auth option which I don’t use.
