I have a small rails app that has default scaffold generated routes eg. /stadia/1.xml
. However I have to support legacy client app that can't construct such URLs correctly. What I need to do is to map URL in the form:
/stadia?id=1?format=xml
to /stadia/1.xml
Or even something like:
/myApp?model=<model_name>?id=<id>?format=xml
to /<model_name/<id>.xml
Is it possible to craft appropriate route in Rails?