diff options
author | Lee Reilly <lee@leereilly.net> | 2010-12-21 19:49:42 -0800 |
---|---|---|
committer | Lee Reilly <lee@leereilly.net> | 2010-12-21 19:49:42 -0800 |
commit | 55b01e65e21203d87d60bc0fad54702384ffaa2b (patch) | |
tree | 94cbf5dc1ccf887f9b0a24d9da4c7b2615531a84 /railties/guides | |
parent | d4afde9ab025854b35634af51fe2ef4edf1f8549 (diff) | |
download | rails-55b01e65e21203d87d60bc0fad54702384ffaa2b.tar.gz rails-55b01e65e21203d87d60bc0fad54702384ffaa2b.tar.bz2 rails-55b01e65e21203d87d60bc0fad54702384ffaa2b.zip |
No example given on how to render JSON data despite the heading 'Rendering XML and JSON data'; added relevant code.
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/action_controller_overview.textile | 1 |
1 files changed, 1 insertions, 0 deletions
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 |