# semi-RESTful routes user problem

**URL:** <https://www.ruby-forum.com/t/semi-restful-routes-user-problem/110806>\
**Category:** Rails\
**Created:** [July 31, 2007, 5:55am UTC](https://www.ruby-forum.com/t/semi-restful-routes-user-problem/110806 "2007-07-31T05:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/8e7dd6/32.png) [@Kip](https://www.ruby-forum.com/u/Kip)\
**Post date:** [July 31, 2007, 5:55am UTC](https://www.ruby-forum.com/t/semi-restful-routes-user-problem/110806/1 "2007-07-31T05:55:29Z")

</div>

I am extending my application to provide output in either html or xml  
for most actions. Following the guidance of the default routes.rb I  
modified my index route from:

map.index ‘/index/:action’,  
:controller =\> ‘index’,  
:action =\> ‘show’

which works fine to

map.index ‘/index/:action.:format’,  
:controller =\> ‘index’,  
:action =\> ‘show’,  
:format =\> nil

which fails with “No action responded to index” (no changes to  
controller code, and its the first route in routes.rb). I guess that  
the routes architecture is changing quite a bit, but i am not on edge  
rails, I’m on 1.2.3.7116 (I think the latest gem version).

What is the right rails approach to route construction for this? And  
where have i messed up on the above?

Cheers, and thanks, --Kip
