# Routing error for named resources in IE6 only

**URL:** <https://www.ruby-forum.com/t/routing-error-for-named-resources-in-ie6-only/88593>\
**Category:** Rails\
**Created:** [March 12, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/routing-error-for-named-resources-in-ie6-only/88593 "2007-03-12T22:18:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [March 12, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/routing-error-for-named-resources-in-ie6-only/88593/1 "2007-03-12T22:18:50Z")

</div>

This is a production problem with Rails 1.2.2. I have a sessions  
controller with the following actions: new, create, destroy.

I am using named route resources, with a route like this in config/  
routes.rb:  
map.resources \*%w(post\_states sessions)

In a layout, I have this logout link:  
link\_to ‘logout’, session\_path(session), :method =\> :delete

When this link is clicked in FireFox on Windows XP or any Mac browser,  
Rails does what is expected, it generates a call to the destroy method  
of the sessions controller:

Processing SessionsController#destroy (for 24.218.10.234 at 2007-03-12  
20:13:20) [DELETE]  
Session ID: 45bbfc98cbfe99eaf4a03fbe8cf4a3a2  
Parameters: {“\_method”=\>“delete”, “action”=\>“destroy”,  
“id”=\>“#CGI::Session:0x9924024”, “controller”=\>“sessions”}  
Redirected to [http://www.mysite.com/sessions/new](http://www.mysite.com/sessions/new)  
Completed in 0.03335 (29 reqs/sec) | DB: 0.00000 (0%) | 302 Found  
[[http://www.mysite.com/sessions/%23\<CGI::Session:0x9924024\>](http://www.mysite.com/sessions/%23%3CCGI::Session:0x9924024%3E)]

Here’s the problem. When the link is clicked in IE6, Rails tries to  
call the index action of the sessions controller:

Processing SessionsController#index (for 24.218.10.234 at 2007-03-12  
19:49:41) [DELETE]  
Session ID: 1011df9da58b75f0b2c9634dd3d44d49  
Parameters: {“\_method”=\>“delete”, “action”=\>“index”,  
“controller”=\>“sessions”}

ActionController::UnknownAction (No action responded to index)

Any insights would be appreciated. I have other controllers which  
make delete requests on named controllers, and those actions run  
without incident.

– Jeff
