Forum: Ruby on Rails REST default response format

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E49c2e77533477d3c7107f029d9d4b09?d=identicon&s=25 (Guest)
on 2007-04-23 12:17
(Received via mailing list)

Does anybody know how to change the default response format of RESTful
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.

This topic is locked and can not be replied to.