I had a similar problem with handling different formats ... I solved this by explicitly specifying which formats I want to use as follows:
in the ActiveResource model, set the self.format parameter
class Order < ActiveResource::Base self.site = "http://lbv.me" self.format = :json end
In the ActiveRecord model, if you use the reply_with method, you really have to specify in what format you expect the response, for example:
class UsersController < ApplicationController respond_to :html, :json def show @user = User.find(params[:id]) respond_with @user end . . . end
source share