diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-26 01:59:31 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-26 01:59:31 +0200 |
commit | 5dd92726a96025b902e9f9254f3ade30d2364471 (patch) | |
tree | 44e4a60a451d43b76e42fff3761d83f53148139c /railties/guides/source/layouts_and_rendering.textile | |
parent | cd0267cd33d1792348f758044a8b3c301b875dcd (diff) | |
parent | 366e0fbd8d9bf1b5865edb930e795a17e5547a43 (diff) | |
download | rails-5dd92726a96025b902e9f9254f3ade30d2364471.tar.gz rails-5dd92726a96025b902e9f9254f3ade30d2364471.tar.bz2 rails-5dd92726a96025b902e9f9254f3ade30d2364471.zip |
Merge remote branch 'docrails/master'
Diffstat (limited to 'railties/guides/source/layouts_and_rendering.textile')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index 1bef4d2145..fe5b4c8773 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -285,7 +285,7 @@ JSON is a javascript data format used by many AJAX libraries. Rails has built-in render :json => @product </ruby> -TIP: You don't need to call +as_json+ on the object that you want to render. If you use the +:json+ option, +render+ will automatically call +as_json+ for you. +TIP: You don't need to call +to_json+ on the object that you want to render. If you use the +:json+ option, +render+ will automatically call +to_json+ for you. h5. Rendering XML |