From 55b01e65e21203d87d60bc0fad54702384ffaa2b Mon Sep 17 00:00:00 2001
From: Lee Reilly <lee@leereilly.net>
Date: Tue, 21 Dec 2010 19:49:42 -0800
Subject: No example given on how to render JSON data despite the heading
 'Rendering XML and JSON data'; added relevant code.

---
 railties/guides/source/action_controller_overview.textile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile
index 0d6919a205..8f9afb9c6d 100644
--- a/railties/guides/source/action_controller_overview.textile
+++ b/railties/guides/source/action_controller_overview.textile
@@ -368,6 +368,7 @@ class UsersController < ApplicationController
     respond_to do |format|
       format.html # index.html.erb
       format.xml  { render :xml => @users}
+      format.json  { render :json => @users}
     end
   end
 end
-- 
cgit v1.2.3