I have a Rails 2.1.2 site that only has html templates e.g. jobs.html.erb, so when I request a restful resource:
www.mysite.com/jobs/1
In your routes you can simply remove the line:
map.connect ':controller/:action/:id.:format'
And the ".xyz" will no longer be routed, resulting in 404 errors/.