REST default response format

Hi,

Does anybody know how to change the default response format of RESTful
controllers?
My controllers support both XML and JSON responses but I need JSON one
to be the default one.

Changing the order of the format.xx {} clauses does not seem to solve
the problem.

Regards,
Erik

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs