What is the mime type of the response?

What does your controller look like?

jeff

On Fri, Apr 8, 2011 at 8:29 PM, Chknout <[email protected]> wrote:

> I am trying to create an xml response from heroku, but the response
> seems to come back as plain text.  i don't have this issue in my
> localhost, just in heroku.  i also get the following error message:
>
> ===========
> This page contains the following errors:
>
> error on line 1 at column 1: Document is empty
> Below is a rendering of the page up to the first error.
> ===========
>
> when i view source, i see the raw xml code:
> =======
> xml.instruct!
> xml.Response do
>    xml.Say "Hello world."
> end
> ========
>
> instead of:
> =========
> <?xml version="1.0" encoding="UTF-8"?>
> <Response>
>  <Say>Hello anu, our app is getting ready.</Say>
> </Response>
> ==========
>
> any suggestions?
>
> btw, i am a total newbie to xml responses, so pardon me if i am asking
> some dumb questions here....
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to