I’m new to Jets and excited about its potential. Just started with it today and the first thing I tried to do was to render some XML (I work at Twilio and I’m just building a simple message responder to try this out, so need to return TwiML.)
I built a really simple controller, but when I
render as xml the response header comes back with a content type of
text/html instead of
application/xml. A minimal example of this is:
class MessagesController > ApplicationController def create render xml: "<Hello>World</Hello>" end end
I can get the right response header if I include a
content_type attribute, but I would expect
render xml: content to set the right header.
Am I doing something wrong or is this a bug? Thanks!