send helper is an easy way to send a file or data in the response:
You can pass it a file or a path. You can also pass the file name and the mime type (which is guessed if not provided):
send a_file, 'text/xml', 'xml_data.xml'
It can also send data (a mime type must be provided in this case):
send some_data, 'text/xml'