Forum: Ruby on Rails semi-RESTful routes user problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9347d4d9f9c4272f6a3297ea3a5976ac?d=identicon&s=25 Kip (Guest)
on 2007-07-31 05: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 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
This topic is locked and can not be replied to.