Forum: Ruby on Rails semi-RESTful routes user problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kip (Guest)
on 2007-07-31 07:55
(Received via mailing list)
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 (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
This topic is locked and can not be replied to.