Forum: Ruby on Rails REST default response format

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E49c2e77533477d3c7107f029d9d4b09?d=identicon&s=25 eallik@gmail.com (Guest)
on 2007-04-23 12:17
(Received via mailing list)
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 topic is locked and can not be replied to.