diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-06 22:27:08 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-06 22:27:08 +0000 |
commit | 42596543dc0bac7aad9763b82ee4cc2b17f3110c (patch) | |
tree | 873c69b136730b34564b45bbd7c220e165272ddf /actionpack/install.rb | |
parent | 4c9000d51d0c39cfff438767f4709b8d8ad1c692 (diff) | |
download | rails-42596543dc0bac7aad9763b82ee4cc2b17f3110c.tar.gz rails-42596543dc0bac7aad9763b82ee4cc2b17f3110c.tar.bz2 rails-42596543dc0bac7aad9763b82ee4cc2b17f3110c.zip |
respond_to recognizes JSON. render :json => @person.to_json automatically sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument. References #4185.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/install.rb')
0 files changed, 0 insertions, 0 deletions