If I do something like:
result = Appointment.find( :all, :include => :staff ) logger.debug { result.inspect }
then it only prints out t
Check out ActiveRecord::Serialization and ActionController::Base (see section: "Rendering JSON")
def show @appointment = Appointment.find(:all, :include => :staff) respond_to do |format| format.html format.js { render :json => @appointment.to_json(:methods => [:staff]) } end end