diff options
author | Rajinder Yadav <devguy.ca@gmail.com> | 2010-11-13 20:24:04 -0500 |
---|---|---|
committer | Rajinder Yadav <devguy.ca@gmail.com> | 2010-11-13 20:24:04 -0500 |
commit | 7e1f6688e92c18f9973ad65db7b95de495b98947 (patch) | |
tree | af2202f91824f01b502431710b30749053009386 /railties/guides | |
parent | d44cd370bfd044d460359ec8c2bb5ce36451d341 (diff) | |
download | rails-7e1f6688e92c18f9973ad65db7b95de495b98947.tar.gz rails-7e1f6688e92c18f9973ad65db7b95de495b98947.tar.bz2 rails-7e1f6688e92c18f9973ad65db7b95de495b98947.zip |
the partial option is not required for simple partial rendering
Diffstat (limited to 'railties/guides')
-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 c65ea5c797..4e26d152bf 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -970,7 +970,7 @@ Partial templates - usually just called "partials" - are another device for brea h5. Naming Partials -To render a partial as part of a view, you use the +render+ method within the view, and include the +:partial+ option: +To render a partial as part of a view, you use the +render+ method within the view: <ruby> <%= render "menu" %> |