diff options
author | Xavier Noria <fxn@hashref.com> | 2010-01-23 13:17:52 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-01-23 13:19:58 +0100 |
commit | c718da5351922c0ac0a3b4c1e18935cde4dd8065 (patch) | |
tree | 8cbe9ae4a3ae351cb153fa8ab35f2ff969fdd394 /railties/guides/source/layouts_and_rendering.textile | |
parent | 4443f4173ba3bda535a49f3507375848c253da22 (diff) | |
download | rails-c718da5351922c0ac0a3b4c1e18935cde4dd8065.tar.gz rails-c718da5351922c0ac0a3b4c1e18935cde4dd8065.tar.bz2 rails-c718da5351922c0ac0a3b4c1e18935cde4dd8065.zip |
render :text renders text, thank to Patrik Wenger
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 0cee413ac3..323f441218 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -180,7 +180,7 @@ render :text => "OK" TIP: Rendering pure text is most useful when you're responding to AJAX or web service requests that are expecting something other than proper HTML. -NOTE: By default, if you use the +:text+ option, the file is rendered without using the current layout. If you want Rails to put the text into the current layout, you need to add the +:layout => true+ option +NOTE: By default, if you use the +:text+ option the text is rendered without using the current layout. If you want Rails to put the text into the current layout, you need to add the +:layout => true+ option. h5. Rendering JSON |