Ruby on Rails: how to display an HTTP 500 in XML?
Posted
by randombits
on Stack Overflow
See other posts from Stack Overflow
or by randombits
Published on 2010-05-28T19:04:00Z
Indexed on
2010/05/28
19:31 UTC
Read the original article
Hit count: 177
ruby-on-rails
|ruby
I want to be able to display an HTTP 500 error with an XML builder template if the request Accept type is asking for XML. By default it displays 500.html, even if the request type is not asking for an HTML response.
© Stack Overflow or respective owner