I'm trying to get a simple XML response going in one of my controllers so I thought it'd be as easy as adding something like
respond_to do |format| format.html format.xml {render :xml = > @stuff.to_xml } end
to the bottom of the controller method and the default routes would take care of it. But instead when I try something like
http://localhost/stuffs/list.xml
I get a routing error saying that there's no route for stuffs/ list.xml.
Am I missing something here? I admit the application is not RESTful (it's kind of an old app) but it is running Rails 2.0.2 and the default routes are set as
map.connect ':controller/:action/:id.:format' map.connect ':controller/:action/:id'
Anyone have this problem before?
Dale