Rails – How to add a format to an url helper?
You should be able to do something like this: some_resource_path(format: :json) or some_resource_url(format: :xml)
You should be able to do something like this: some_resource_path(format: :json) or some_resource_url(format: :xml)