I have a series of resources that I want only available if accessed via the JS format. Rails\' route resources gives me the formats plus the standard HTML. Is there a way
You just add constraints about format :
resources :photos, :constraints => {:format => /(js|json)/}