diff options
author | Xavier Noria <fxn@hashref.com> | 2011-03-25 20:08:13 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-04-13 13:23:17 +0200 |
commit | eea66892c80d51c1b959171c2e3feac67124aaba (patch) | |
tree | eefef7da55fee3ec886376968167a500da479c82 /railties/guides/source/layouts_and_rendering.textile | |
parent | 25181cafee9ef087a14b5134b9fa1f85f758705a (diff) | |
download | rails-eea66892c80d51c1b959171c2e3feac67124aaba.tar.gz rails-eea66892c80d51c1b959171c2e3feac67124aaba.tar.bz2 rails-eea66892c80d51c1b959171c2e3feac67124aaba.zip |
removes support for render :update
Diffstat (limited to 'railties/guides/source/layouts_and_rendering.textile')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index 8ea63f2ce3..da316a2db3 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -250,18 +250,6 @@ render :inline => "xml.p {'Horrid coding practice!'}", :type => :builder </ruby> -h5. Using +render+ with +:update+ - -You can also render JavaScript-based page updates inline using the +:update+ option to +render+: - -<ruby> -render :update do |page| - page.replace_html 'warning', "Invalid options supplied" -end -</ruby> - -WARNING: Placing JavaScript updates in your controller may seem to streamline small updates, but it defeats the MVC orientation of Rails and will make it harder for other developers to follow the logic of your project. We recommend using a separate RJS template instead, no matter how small the update. - h5. Rendering Text You can send plain text - with no markup at all - back to the browser by using the +:text+ option to +render+: |