<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">7211</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2008-09-18T03:04:48+01:00</created-at>
  <creator-id type="integer">7211</creator-id>
  <milestone-due-on type="datetime">2008-10-13T00:00:00+01:00</milestone-due-on>
  <milestone-id type="integer">20253</milestone-id>
  <number type="integer">15</number>
  <permalink>layouts-rendering</permalink>
  <priority type="integer">4</priority>
  <project-id type="integer">16213</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>published</state>
  <tag>actionview layouts nested rendering</tag>
  <title>Layouts &amp; Rendering</title>
  <updated-at type="datetime">2010-02-09T02:54:05+00:00</updated-at>
  <user-id type="integer">85796</user-id>
  <user-name>wish i didnt need an account</user-name>
  <creator-name>Mike Gunderloy</creator-name>
  <assigned-user-name>Mike Gunderloy</assigned-user-name>
  <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
  <milestone-title>Guides batch 1</milestone-title>
  <original-body>Topics: all the flavors of render, head, redirect, a few general words about views to set the stage, writing layouts, yield/content_for, partials

Not included - forms, AV in general

I'm working on this one, though if someone else gets suddenly inspired and wants to finish it don't be shy.</original-body>
  <latest-body>Topics: all the flavors of render, head, redirect, a few general words about views to set the stage, writing layouts, yield/content_for, partials

Not included - forms, AV in general

I'm working on this one, though if someone else gets suddenly inspired and wants to finish it don't be shy.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Topics: all the flavors of render, head, redirect, a few general
words about views to set the stage, writing layouts,
yield/content_for, partials&lt;/p&gt;
&lt;p&gt;Not included - forms, AV in general&lt;/p&gt;
&lt;p&gt;I'm working on this one, though if someone else gets suddenly
inspired and wants to finish it don't be shy.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Topics: all the flavors of render, head, redirect, a few general words about views to set the stage, writing layouts, yield/content_for, partials

Not included - forms, AV in general

I'm working on this one, though if someone else gets suddenly inspired and wants to finish it don't be shy.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Topics: all the flavors of render, head, redirect, a few general
words about views to set the stage, writing layouts,
yield/content_for, partials&lt;/p&gt;
&lt;p&gt;Not included - forms, AV in general&lt;/p&gt;
&lt;p&gt;I'm working on this one, though if someone else gets suddenly
inspired and wants to finish it don't be shy.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-18T03:04:48+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2008-09-18T03:04:52+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>There's a full draft of this one up now (http://guides.rails.info/actionview/layouts_and_rendering.html) and ready for review.</body>
      <body-html>&lt;div&gt;&lt;p&gt;There's a full draft of this one up now (&lt;a href=&quot;http://guides.rails.info/actionview/layouts_and_rendering.html)&quot;&gt;http://guides.rails.info/actionv...&lt;/a&gt;
and ready for review.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-29T01:11:02+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2008-09-29T01:11:04+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hi Mike, this is an awesome awesome guide, thanks for taking the effort and time to work on it. If I had this guide and the other guides way back in 2006, I needn't have spent money on all those Rails books :)

There's one thing I hope you could add to the guide. The part where you explain asset caching, e.g. for this bit:

@@@
&lt;%= javascript_include_tag &quot;main&quot;, &quot;columns&quot;, :cache =&gt; true %&gt;
@@@

There's another (more useful) way of using the :cache option, which is to specify the path like so:

@@@
&lt;%= javascript_include_tag &quot;main&quot;, &quot;columns&quot;, :cache =&gt; 'cache/main/index' %&gt;
@@@

This makes it clear where the cached asset files will be stored and even allows for dynamic paths like :cache =&gt; &quot;cache/#{current_site}/main/index&quot;.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hi Mike, this is an awesome awesome guide, thanks for taking the
effort and time to work on it. If I had this guide and the other
guides way back in 2006, I needn't have spent money on all those
Rails books :)&lt;/p&gt;
&lt;p&gt;There's one thing I hope you could add to the guide. The part
where you explain asset caching, e.g. for this bit:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
&amp;lt;%= javascript_include_tag &amp;quot;main&amp;quot;, &amp;quot;columns&amp;quot;, :cache =&amp;gt; true %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;There's another (more useful) way of using the :cache option,
which is to specify the path like so:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
&amp;lt;%= javascript_include_tag &amp;quot;main&amp;quot;, &amp;quot;columns&amp;quot;, :cache =&amp;gt; 'cache/main/index' %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This makes it clear where the cached asset files will be stored
and even allows for dynamic paths like :cache =&amp;gt;
&quot;cache/#{current_site}/main/index&quot;.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-07T04:36:44+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2008-10-07T04:36:48+01:00</updated-at>
      <user-id type="integer">586</user-id>
      <user-name>Cheah Chu Yeow</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Good idea! I added some coverage.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Good idea! I added some coverage.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-07T11:44:36+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2008-10-07T11:44:42+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-10-16T14:38:44+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
:assigned_user: 1366
:milestone: 
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2008-10-16T14:38:48+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Excellent work!

In section 3.4.4, there's a paragraph that starts with:

&gt; Every partial also has a local variable with the same name as the partial (minus the underscore). By default, it will look for an instance variable with the same name as the partial in the parent.

I recently noticed this sentence in the [2.2 Release Notes](http://guides.rubyonrails.org/2_2_release_notes.html) which says:

&gt; Implicit local assignments when rendering partials has been deprecated.  

If this is really true, then the wording and/or examples in 3.4.4 that use a default local object with the same name as the partial, will have to change.

(By the way, anybody know why Rails is dropping this convention? I happen to like this convention).</body>
      <body-html>&lt;div&gt;&lt;p&gt;Excellent work!&lt;/p&gt;
&lt;p&gt;In section 3.4.4, there's a paragraph that starts with:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Every partial also has a local variable with the same name as
the partial (minus the underscore). By default, it will look for an
instance variable with the same name as the partial in the
parent.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I recently noticed this sentence in the &lt;a href=&quot;http://guides.rubyonrails.org/2_2_release_notes.html&quot;&gt;2.2 Release
Notes&lt;/a&gt; which says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Implicit local assignments when rendering partials has been
deprecated.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If this is really true, then the wording and/or examples in
3.4.4 that use a default local object with the same name as the
partial, will have to change.&lt;/p&gt;
&lt;p&gt;(By the way, anybody know why Rails is dropping this convention?
I happen to like this convention).&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-10-29T18:46:50+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2008-10-29T18:46:52+00:00</updated-at>
      <user-id type="integer">17710</user-id>
      <user-name>Jeff Cohen</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Thanks Jeff. I fixed up the wording with a warning. After testing, this still works:

&lt;%= render :partial =&gt; @customer %&gt;

But this is deprecated:

@customer = Customer.first
&lt;%= render :partial =&gt; &quot;customer&quot; %&gt;</body>
      <body-html>&lt;div&gt;&lt;p&gt;Thanks Jeff. I fixed up the wording with a warning. After
testing, this still works:&lt;/p&gt;
&lt;p&gt;&amp;lt;%= render :partial =&amp;gt; @customer %&amp;gt;&lt;/p&gt;
&lt;p&gt;But this is deprecated:&lt;/p&gt;
&lt;p&gt;@customer = Customer.first &amp;lt;%= render :partial =&amp;gt;
&quot;customer&quot; %&amp;gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-11-01T12:02:45+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2008-11-01T12:02:47+00:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Before I forget, guide should mention the new 'unified rendering' stuff - http://weblog.rubyonrails.org/2008/12/26/this-week-in-edge-rails</body>
      <body-html>&lt;div&gt;&lt;p&gt;Before I forget, guide should mention the new 'unified
rendering' stuff - &lt;a href=&quot;http://weblog.rubyonrails.org/2008/12/26/this-week-in-edge-rails&quot;&gt;http://weblog.rubyonrails.org/20...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-01-10T04:35:59+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-01-10T04:36:02+00:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Already done two weeks ago.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Already done two weeks ago.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-01-10T12:08:09+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-01-10T12:08:12+00:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>These guides really rock.  They are great, much better than the book I started with.

Anyhow, this page should really talk about respond_to, shouldn't it?</body>
      <body-html>&lt;div&gt;&lt;p&gt;These guides really rock. They are great, much better than the
book I started with.&lt;/p&gt;
&lt;p&gt;Anyhow, this page should really talk about respond_to, shouldn't
it?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-06T10:28:26+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-02-06T10:28:29+00:00</updated-at>
      <user-id type="integer">44059</user-id>
      <user-name>GreenAsJade</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>The whole &quot;Using render&quot; section seems a little to long and complicated for me.
I would recommend either splitting it up or removing some not that important stuff (i.e., the old render()-conventions, each with a seperate example)

http://guides.rails.info/layouts_and_rendering.html#usingrender</body>
      <body-html>&lt;div&gt;&lt;p&gt;The whole &quot;Using render&quot; section seems a little to long and
complicated for me. I would recommend either splitting it up or
removing some not that important stuff (i.e., the old
render()-conventions, each with a seperate example)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://guides.rails.info/layouts_and_rendering.html#usingrender&quot;&gt;http://guides.rails.info/layouts...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-06T14:54:52+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-02-06T14:54:57+00:00</updated-at>
      <user-id type="integer">46476</user-id>
      <user-name>Jonas Schneider</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>In section 3.2 &quot;Understanding yield&quot; all examples have an incorrect &lt;code&gt;&lt;hbody&gt;&lt;/code&gt; tag. This should be &lt;code&gt;&lt;/body&gt;&lt;/code&gt;.</body>
      <body-html>&lt;div&gt;&lt;p&gt;In section 3.2 &quot;Understanding yield&quot; all examples have an
incorrect tag. This should be&lt;/p&gt;
.&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-25T12:04:49+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:state: resolved
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-02-25T12:04:54+00:00</updated-at>
      <user-id type="integer">43411</user-id>
      <user-name>Robert Lee-Cann</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Sorry... HTML tags are missing from my comment, despite wrapping with &quot;code&quot; tag!

In section 3.2, an incorrect &quot;hbody&quot; tag is shown. This should of course be a closing body tag, in all examples in this section.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Sorry... HTML tags are missing from my comment, despite wrapping
with &quot;code&quot; tag!&lt;/p&gt;
&lt;p&gt;In section 3.2, an incorrect &quot;hbody&quot; tag is shown. This should
of course be a closing body tag, in all examples in this
section.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-25T12:08:29+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-02-25T12:08:31+00:00</updated-at>
      <user-id type="integer">43411</user-id>
      <user-name>Robert Lee-Cann</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Thank you Robert, fixed in http://github.com/lifo/docrails/commit/f0d44ec898f0e6c4331e7ecca85a50f9ab13dee9</body>
      <body-html>&lt;div&gt;&lt;p&gt;Thank you Robert, fixed in &lt;a href=&quot;http://github.com/lifo/docrails/commit/f0d44ec898f0e6c4331e7ecca85a50f9ab13dee9&quot;&gt;
http://github.com/lifo/docrails/...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-25T13:29:25+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-02-25T13:29:30+00:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Great doc -- thx!

One minor typo in section 3.4.4.  Right above the &quot;In previous versions...&quot; warning, is this sentence:

  Within the customer partial, the @customer variable will refer to @new_customer from the parent view.

Instead of &quot;@customer&quot;, the variable within the partial will be just &quot;customer&quot; (without the &quot;@&quot;).  As the paragraph above the example says, the partial will have &quot;a local variable with the same name as the partial (minus the underscore)&quot;.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Great doc -- thx!&lt;/p&gt;
&lt;p&gt;One minor typo in section 3.4.4. Right above the &quot;In previous
versions...&quot; warning, is this sentence:&lt;/p&gt;
&lt;p&gt;Within the customer partial, the @customer variable will refer
to @new_customer from the parent view.&lt;/p&gt;
&lt;p&gt;Instead of &quot;@customer&quot;, the variable within the partial will be
just &quot;customer&quot; (without the &quot;@&quot;). As the paragraph above the
example says, the partial will have &quot;a local variable with the same
name as the partial (minus the underscore)&quot;.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-27T22:04:40+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-02-27T22:04:41+00:00</updated-at>
      <user-id type="integer">49023</user-id>
      <user-name>Mike Dietz</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Thanks Mike, fixed in http://github.com/lifo/docrails/commit/d4128cff22f4ad4ec7a69af7f64992607dfc0a20</body>
      <body-html>&lt;div&gt;&lt;p&gt;Thanks Mike, fixed in &lt;a href=&quot;http://github.com/lifo/docrails/commit/d4128cff22f4ad4ec7a69af7f64992607dfc0a20&quot;&gt;
http://github.com/lifo/docrails/...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-27T22:38:09+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-02-27T22:38:15+00:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>The nested rendering example doesn't work for me. 

@@@ ruby

&lt;% content_for :main %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield %&gt;
  &lt;% end -%&gt;
&lt;% render :file =&gt; 'layouts/application' %&gt;

@@@

Gives me a blank page

@@@ ruby
&lt;% content_for :main %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield %&gt;
  &lt;% end -%&gt;
&lt;%= render :file =&gt; 'layouts/application' %&gt;
@@@

Leaves out the right menu.

@@@ ruby
&lt;% content_for :layout %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield %&gt;
  &lt;% end -%&gt;
&lt;%= render :file =&gt; 'layouts/application' %&gt;
@@@

Gives me the normal view content followed by the menu and then the content a second time.</body>
      <body-html>&lt;div&gt;&lt;p&gt;The nested rendering example doesn't work for me.&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;

&amp;lt;% content_for :main %&amp;gt;
  &amp;lt;div id=&amp;quot;right_menu&amp;quot;&amp;gt;Right menu items here&amp;lt;/div&amp;gt;
  &amp;lt;%= yield %&amp;gt;
  &amp;lt;% end -%&amp;gt;
&amp;lt;% render :file =&amp;gt; 'layouts/application' %&amp;gt;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Gives me a blank page&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;
&amp;lt;% content_for :main %&amp;gt;
  &amp;lt;div id=&amp;quot;right_menu&amp;quot;&amp;gt;Right menu items here&amp;lt;/div&amp;gt;
  &amp;lt;%= yield %&amp;gt;
  &amp;lt;% end -%&amp;gt;
&amp;lt;%= render :file =&amp;gt; 'layouts/application' %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Leaves out the right menu.&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;
&amp;lt;% content_for :layout %&amp;gt;
  &amp;lt;div id=&amp;quot;right_menu&amp;quot;&amp;gt;Right menu items here&amp;lt;/div&amp;gt;
  &amp;lt;%= yield %&amp;gt;
  &amp;lt;% end -%&amp;gt;
&amp;lt;%= render :file =&amp;gt; 'layouts/application' %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Gives me the normal view content followed by the menu and then
the content a second time.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-03-04T00:49:55+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-03-04T00:49:59+00:00</updated-at>
      <user-id type="integer">19875</user-id>
      <user-name>Peter Wagenet</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Re: nested layouts, this works for me in Rails 2.3:

app/views/layouts/application.html.erb (no changes)

&lt;pre&gt;&lt;code class='ruby'&gt;&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;&lt;%= @page_title or 'Page Title' %&gt;&lt;/title&gt;
  &lt;%= stylesheet_link_tag 'layout' %&gt;
  &lt;style type=&quot;text/css&quot;&gt;&lt;%= yield :stylesheets %&gt;&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div id=&quot;top_menu&quot;&gt;Top menu items here&lt;/div&gt;
  &lt;div id=&quot;menu&quot;&gt;Menu items here&lt;/div&gt;
  &lt;div id=&quot;content&quot;&gt;&lt;%= yield(:content) or yield %&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;&lt;/code&gt;&lt;/pre&gt;

app/views/layouts/news.html.erb:

&lt;pre&gt;&lt;code class='ruby'&gt;&lt;% content_for :stylesheets do %&gt;
  #top_menu {display: none}
  #right_menu {float: right; background-color: yellow; color: black}
&lt;% end -%&gt;
&lt;% content_for :content do %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield(:news_content) or yield %&gt;
&lt;% end -%&gt;
&lt;%= render :file =&gt; 'layouts/application' %&gt;&lt;/code&gt;&lt;/pre&gt;

However, I don't like dumping markup into the view and hiding it, so to keep things a bit cleaner, I propose the example is revised to use a partial for the top nav, e.g.

app/views/layouts/application.html.erb (no changes)

&lt;pre&gt;&lt;code class='ruby'&gt;&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;&lt;%= @page_title or 'Page Title' %&gt;&lt;/title&gt;
  &lt;%= stylesheet_link_tag 'layout' %&gt;
  &lt;style type=&quot;text/css&quot;&gt;&lt;%= yield :stylesheets %&gt;&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;%= render :partial =&gt; 'shared/top_menu' unless @top_menu_hidden %&gt;
  &lt;div id=&quot;menu&quot;&gt;Menu items here&lt;/div&gt;
  &lt;div id=&quot;content&quot;&gt;&lt;%= yield(:content) or yield %&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;&lt;/code&gt;&lt;/pre&gt;

app/views/layouts/news.html.erb:

&lt;pre&gt;&lt;code class='ruby'&gt;&lt;% @top_menu_hidden = true %&gt;
&lt;% content_for :content do %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield(:news_content) or yield %&gt;
&lt;% end -%&gt;
&lt;%= render :file =&gt; 'layouts/application' %&gt;&lt;/code&gt;&lt;/pre&gt;</body>
      <body-html>&lt;div&gt;&lt;p&gt;Re: nested layouts, this works for me in Rails 2.3:&lt;/p&gt;
&lt;p&gt;app/views/layouts/application.html.erb (no changes)&lt;/p&gt;
&lt;pre&gt;
&lt;code class=&quot;ruby&quot;&gt;
&lt;/code&gt;
&lt;/pre&gt;

&amp;lt;%= @page_title or 'Page Title' %&gt;
&amp;lt;%= stylesheet_link_tag 'layout' %&gt;

&amp;lt;%= yield :stylesheets %&gt;


&lt;pre&gt;

&lt;/pre&gt;

&lt;div&gt;&lt;code class=&quot;ruby&quot;&gt;Top menu items
here&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;Menu items here&lt;/div&gt;
&lt;div&gt;&amp;lt;%= yield(:content) or yield %&gt;&lt;/div&gt;
app/views/layouts/news.html.erb:
&lt;pre&gt;
&lt;code class=&quot;ruby&quot;&gt;&amp;lt;% content_for :stylesheets do %&gt;
  #top_menu {display: none}
  #right_menu {float: right; background-color: yellow; color: black}
&amp;lt;% end -%&gt;
&amp;lt;% content_for :content do %&gt;
  &lt;/code&gt;
&lt;/pre&gt;
&lt;div&gt;&lt;code class=&quot;ruby&quot;&gt;Right menu items
here&lt;/code&gt;&lt;/div&gt;
&lt;pre&gt;

  &amp;lt;%= yield(:news_content) or yield %&gt;
&amp;lt;% end -%&gt;
&amp;lt;%= render :file =&gt; 'layouts/application' %&gt;
&lt;/pre&gt;
However, I don't like dumping markup into the view and hiding it,
so to keep things a bit cleaner, I propose the example is revised
to use a partial for the top nav, e.g.
app/views/layouts/application.html.erb (no changes)
&lt;pre&gt;
&lt;code class=&quot;ruby&quot;&gt;
&lt;/code&gt;
&lt;/pre&gt;

&amp;lt;%= @page_title or 'Page Title' %&gt;
&amp;lt;%= stylesheet_link_tag 'layout' %&gt;

&amp;lt;%= yield :stylesheets %&gt;


&lt;pre&gt;

&lt;/pre&gt;

&amp;lt;%= render :partial =&gt; 'shared/top_menu' unless @top_menu_hidden %&gt;
&lt;div&gt;&lt;code class=&quot;ruby&quot;&gt;Menu items here&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&amp;lt;%= yield(:content) or yield %&gt;&lt;/div&gt;
app/views/layouts/news.html.erb:
&lt;pre&gt;
&lt;code class=&quot;ruby&quot;&gt;&amp;lt;% @top_menu_hidden = true %&gt;
&amp;lt;% content_for :content do %&gt;
  &lt;/code&gt;
&lt;/pre&gt;
&lt;div&gt;&lt;code class=&quot;ruby&quot;&gt;Right menu items
here&lt;/code&gt;&lt;/div&gt;
&lt;pre&gt;

  &amp;lt;%= yield(:news_content) or yield %&gt;
&amp;lt;% end -%&gt;
&amp;lt;%= render :file =&gt; 'layouts/application' %&gt;
&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-03-26T20:12:56+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-03-26T20:12:58+00:00</updated-at>
      <user-id type="integer">10089</user-id>
      <user-name>Phil Misiowiec</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Oops - I noobed the formatting in my last comment - repost:

Re: nested layouts, this works for me in Rails 2.3:


app/views/layouts/application.html.erb (no changes)


`&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;&lt;%= @page_title or 'Page Title' %&gt;&lt;/title&gt;
  &lt;%= stylesheet_link_tag 'layout' %&gt;
  &lt;style type=&quot;text/css&quot;&gt;&lt;%= yield :stylesheets %&gt;&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div id=&quot;top_menu&quot;&gt;Top menu items here&lt;/div&gt;
  &lt;div id=&quot;menu&quot;&gt;Menu items here&lt;/div&gt;
  &lt;div id=&quot;content&quot;&gt;&lt;%= yield(:content) or yield %&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;`


app/views/layouts/news.html.erb: 

`&lt;% content_for :stylesheets do %&gt;
  #top_menu {display: none}
  #right_menu {float: right; background-color: yellow; color: black}
&lt;% end -%&gt;
&lt;% content_for :content do %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield(:news_content) or yield %&gt;
  &lt;% end -%&gt;
&lt;% render :file =&gt; 'layouts/application' %&gt;`

However, I don't like dumping markup into the view and hiding it, so to keep things a bit cleaner, I propose the example is revised to use a partial for the top nav.


app/views/layouts/application.html.erb


`&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;&lt;%= @page_title or 'Page Title' %&gt;&lt;/title&gt;
  &lt;%= stylesheet_link_tag 'layout' %&gt;
  &lt;style type=&quot;text/css&quot;&gt;&lt;%= yield :stylesheets %&gt;&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;%= render :partial =&gt; 'shared/top_menu' unless @top_menu_hidden %&gt;
  &lt;div id=&quot;menu&quot;&gt;Menu items here&lt;/div&gt;
  &lt;div id=&quot;content&quot;&gt;&lt;%= yield(:content) or yield %&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;`


app/views/layouts/news.html.erb: 


`&lt;% @top_menu_hidden = true %&gt;
&lt;% content_for :content do %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield(:news_content) or yield %&gt;
&lt;% end -%&gt;
&lt;%= render :file =&gt; 'layouts/application' %&gt;`</body>
      <body-html>&lt;div&gt;&lt;p&gt;Oops - I noobed the formatting in my last comment - repost:&lt;/p&gt;
&lt;p&gt;Re: nested layouts, this works for me in Rails 2.3:&lt;/p&gt;
&lt;p&gt;app/views/layouts/application.html.erb (no changes)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;html&amp;gt; &amp;lt;head&amp;gt; &amp;lt;title&amp;gt;&amp;lt;%= @page_title
or 'Page Title' %&amp;gt;&amp;lt;/title&amp;gt; &amp;lt;%= stylesheet_link_tag
'layout' %&amp;gt; &amp;lt;style type=&quot;text/css&quot;&amp;gt;&amp;lt;%= yield
:stylesheets %&amp;gt;&amp;lt;/style&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt; &amp;lt;div
id=&quot;top_menu&quot;&amp;gt;Top menu items here&amp;lt;/div&amp;gt; &amp;lt;div
id=&quot;menu&quot;&amp;gt;Menu items here&amp;lt;/div&amp;gt; &amp;lt;div
id=&quot;content&quot;&amp;gt;&amp;lt;%= yield(:content) or yield %&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;app/views/layouts/news.html.erb:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;% content_for :stylesheets do %&amp;gt; #top_menu
{display: none} #right_menu {float: right; background-color:
yellow; color: black} &amp;lt;% end -%&amp;gt; &amp;lt;% content_for :content
do %&amp;gt; &amp;lt;div id=&quot;right_menu&quot;&amp;gt;Right menu items
here&amp;lt;/div&amp;gt; &amp;lt;%= yield(:news_content) or yield %&amp;gt; &amp;lt;%
end -%&amp;gt; &amp;lt;% render :file =&amp;gt; 'layouts/application'
%&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;However, I don't like dumping markup into the view and hiding
it, so to keep things a bit cleaner, I propose the example is
revised to use a partial for the top nav.&lt;/p&gt;
&lt;p&gt;app/views/layouts/application.html.erb&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;html&amp;gt; &amp;lt;head&amp;gt; &amp;lt;title&amp;gt;&amp;lt;%= @page_title
or 'Page Title' %&amp;gt;&amp;lt;/title&amp;gt; &amp;lt;%= stylesheet_link_tag
'layout' %&amp;gt; &amp;lt;style type=&quot;text/css&quot;&amp;gt;&amp;lt;%= yield
:stylesheets %&amp;gt;&amp;lt;/style&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt; &amp;lt;%=
render :partial =&amp;gt; 'shared/top_menu' unless @top_menu_hidden
%&amp;gt; &amp;lt;div id=&quot;menu&quot;&amp;gt;Menu items here&amp;lt;/div&amp;gt; &amp;lt;div
id=&quot;content&quot;&amp;gt;&amp;lt;%= yield(:content) or yield %&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;app/views/layouts/news.html.erb:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;% @top_menu_hidden = true %&amp;gt; &amp;lt;% content_for
:content do %&amp;gt; &amp;lt;div id=&quot;right_menu&quot;&amp;gt;Right menu items
here&amp;lt;/div&amp;gt; &amp;lt;%= yield(:news_content) or yield %&amp;gt; &amp;lt;%
end -%&amp;gt; &amp;lt;%= render :file =&amp;gt; 'layouts/application'
%&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-03-26T20:24:10+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-03-26T20:24:16+00:00</updated-at>
      <user-id type="integer">10089</user-id>
      <user-name>Phil Misiowiec</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Sorry - did not paste in my corrected version for app/views/layouts/news.html.erb:

@@@
&lt;% content_for :stylesheets do %&gt;
  #top_menu {display: none}
  #right_menu {float: right; background-color: yellow; color: black}
&lt;% end -%&gt;
&lt;% content_for :content do %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt;
  &lt;%= yield(:news_content) or yield %&gt;
  &lt;% end -%&gt;
&lt;%= render :file =&gt; 'layouts/application' %&gt;
@@@</body>
      <body-html>&lt;div&gt;&lt;p&gt;Sorry - did not paste in my corrected version for
app/views/layouts/news.html.erb:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
&amp;lt;% content_for :stylesheets do %&amp;gt;
  #top_menu {display: none}
  #right_menu {float: right; background-color: yellow; color: black}
&amp;lt;% end -%&amp;gt;
&amp;lt;% content_for :content do %&amp;gt;
  &amp;lt;div id=&amp;quot;right_menu&amp;quot;&amp;gt;Right menu items here&amp;lt;/div&amp;gt;
  &amp;lt;%= yield(:news_content) or yield %&amp;gt;
  &amp;lt;% end -%&amp;gt;
&amp;lt;%= render :file =&amp;gt; 'layouts/application' %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-03-26T20:31:25+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-03-26T20:31:26+00:00</updated-at>
      <user-id type="integer">10089</user-id>
      <user-name>Phil Misiowiec</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>And the reformatted version of the proposed tweak to the example using a partial (yep - today is a good day to learn markdown):

app/views/layouts/application.html.erb

@@@
&lt;html&gt; 
&lt;head&gt; 
  &lt;title&gt;&lt;%= @page_title or 'Page Title' %&gt;&lt;/title&gt; 
  &lt;%= stylesheet_link_tag 'layout' %&gt; 
  &lt;style type=&quot;text/css&quot;&gt;&lt;%= yield :stylesheets %&gt;&lt;/style&gt; 
&lt;/head&gt; 
&lt;body&gt;
  &lt;%= render :partial =&gt; 'shared/top_menu' unless @top_menu_hidden -%&gt;
  &lt;div id=&quot;menu&quot;&gt;Menu items here&lt;/div&gt; 
  &lt;div id=&quot;content&quot;&gt;&lt;%= yield(:content) or yield %&gt;&lt;/div&gt; 
&lt;/body&gt; 
&lt;/html&gt;
@@@

app/views/layouts/news.html.erb:

@@@
&lt;% @top_menu_hidden = true %&gt;
&lt;% content_for :content do %&gt;
  &lt;div id=&quot;right_menu&quot;&gt;Right menu items here&lt;/div&gt; 
  &lt;%= yield(:news_content) or yield %&gt; 
&lt;% end -%&gt; 
&lt;%= render :file =&gt; 'layouts/application' -%&gt;
@@@</body>
      <body-html>&lt;div&gt;&lt;p&gt;And the reformatted version of the proposed tweak to the example
using a partial (yep - today is a good day to learn markdown):&lt;/p&gt;
&lt;p&gt;app/views/layouts/application.html.erb&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
&amp;lt;html&amp;gt; 
&amp;lt;head&amp;gt; 
  &amp;lt;title&amp;gt;&amp;lt;%= @page_title or 'Page Title' %&amp;gt;&amp;lt;/title&amp;gt; 
  &amp;lt;%= stylesheet_link_tag 'layout' %&amp;gt; 
  &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&amp;lt;%= yield :stylesheets %&amp;gt;&amp;lt;/style&amp;gt; 
&amp;lt;/head&amp;gt; 
&amp;lt;body&amp;gt;
  &amp;lt;%= render :partial =&amp;gt; 'shared/top_menu' unless @top_menu_hidden -%&amp;gt;
  &amp;lt;div id=&amp;quot;menu&amp;quot;&amp;gt;Menu items here&amp;lt;/div&amp;gt; 
  &amp;lt;div id=&amp;quot;content&amp;quot;&amp;gt;&amp;lt;%= yield(:content) or yield %&amp;gt;&amp;lt;/div&amp;gt; 
&amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;app/views/layouts/news.html.erb:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
&amp;lt;% @top_menu_hidden = true %&amp;gt;
&amp;lt;% content_for :content do %&amp;gt;
  &amp;lt;div id=&amp;quot;right_menu&amp;quot;&amp;gt;Right menu items here&amp;lt;/div&amp;gt; 
  &amp;lt;%= yield(:news_content) or yield %&amp;gt; 
&amp;lt;% end -%&amp;gt; 
&amp;lt;%= render :file =&amp;gt; 'layouts/application' -%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-03-26T20:44:31+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-03-26T20:44:33+00:00</updated-at>
      <user-id type="integer">10089</user-id>
      <user-name>Phil Misiowiec</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>in section 3.5 Using Nested Layouts
app/views/layouts/news.html.erb

&lt;% render :file =&gt; 'layouts/application' %&gt; 

should be 

&lt;%= render :file =&gt; 'layouts/application' %&gt;</body>
      <body-html>&lt;div&gt;&lt;p&gt;in section 3.5 Using Nested Layouts
app/views/layouts/news.html.erb&lt;/p&gt;
&lt;p&gt;&amp;lt;% render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/p&gt;
&lt;p&gt;should be&lt;/p&gt;
&lt;p&gt;&amp;lt;%= render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-04-14T04:03:32+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-04-14T04:03:38+01:00</updated-at>
      <user-id type="integer">49644</user-id>
      <user-name>genkiwow (at gmail)</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Minor typo in section 2.2.12 Finding Layouts in the first paragraph:

 If there is no such controller-specific layout, Rails will use /app/views/layouts/application.html.erb __bold__ot__bold__ /app/views/layouts/application.builder.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Minor typo in section 2.2.12 Finding Layouts in the first
paragraph:&lt;/p&gt;
&lt;p&gt;If there is no such controller-specific layout, Rails will use
/app/views/layouts/application.html.erb
&lt;strong&gt;bold&lt;/strong&gt;ot&lt;strong&gt;bold&lt;/strong&gt;
/app/views/layouts/application.builder.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-04-14T15:44:09+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:assigned_user: 7211
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-04-14T15:44:12+01:00</updated-at>
      <user-id type="integer">54016</user-id>
      <user-name>Bill Allaire</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name nil="true"></assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Forgive my markup typo above.  

More importantly, I wanted to say thanks for these wonderful guides.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Forgive my markup typo above.&lt;br&gt;&lt;/p&gt;
&lt;p&gt;More importantly, I wanted to say thanks for these wonderful
guides.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-04-14T15:49:00+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-04-14T15:49:05+01:00</updated-at>
      <user-id type="integer">54016</user-id>
      <user-name>Bill Allaire</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name nil="true"></assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Section 2.3.1:

&quot;Rails uses HTTP status code 302 (permanent redirect) when you call redirect_to. If you&#8217;d like to use a different status code (perhaps 301, temporary redirect)...&quot;

This is backwards, 301s are permanent and 302s are temporary (super-important for people making changes to sites that are well-indexed by search engines and need to stay that way through the change!)

Excellent guide.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Section 2.3.1:&lt;/p&gt;
&lt;p&gt;&quot;Rails uses HTTP status code 302 (permanent redirect) when you
call redirect_to. If you&amp;#8217;d like to use a different status
code (perhaps 301, temporary redirect)...&quot;&lt;/p&gt;
&lt;p&gt;This is backwards, 301s are permanent and 302s are temporary
(super-important for people making changes to sites that are
well-indexed by search engines and need to stay that way through
the change!)&lt;/p&gt;
&lt;p&gt;Excellent guide.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-04-27T23:43:13+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:assigned_user: 
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-04-27T23:43:16+01:00</updated-at>
      <user-id type="integer">29825</user-id>
      <user-name>Loren Norman</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Thank you Loren, fixed in http://github.com/lifo/docrails/commit/348d7f8a84ee1739ef54c4068263a7d36dd98fd1</body>
      <body-html>&lt;div&gt;&lt;p&gt;Thank you Loren, fixed in &lt;a href=&quot;http://github.com/lifo/docrails/commit/348d7f8a84ee1739ef54c4068263a7d36dd98fd1&quot;&gt;
http://github.com/lifo/docrails/...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-04-28T08:49:50+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-04-28T08:49:55+01:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Found another one!

3.5 Using Nested Layouts

At the end of the last code snippet there should be a leading = before the render() call.

Looks like:

&lt;% render :file =&gt; 'layouts/application' %&gt;

Should be:

&lt;%= render :file =&gt; 'layouts/application' %&gt;

I'm obviously loving the guides. Going to see about committing directly through Github now...</body>
      <body-html>&lt;div&gt;&lt;p&gt;Found another one!&lt;/p&gt;
&lt;p&gt;3.5 Using Nested Layouts&lt;/p&gt;
&lt;p&gt;At the end of the last code snippet there should be a leading =
before the render() call.&lt;/p&gt;
&lt;p&gt;Looks like:&lt;/p&gt;
&lt;p&gt;&amp;lt;% render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/p&gt;
&lt;p&gt;Should be:&lt;/p&gt;
&lt;p&gt;&amp;lt;%= render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/p&gt;
&lt;p&gt;I'm obviously loving the guides. Going to see about committing
directly through Github now...&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-14T00:38:08+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-05-14T00:38:12+01:00</updated-at>
      <user-id type="integer">29825</user-id>
      <user-name>Loren Norman</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Actually, it looks like this was already fixed in the repo on March 22. 

How long does it take for the repo to get pushed to the live site?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Actually, it looks like this was already fixed in the repo on
March 22.&lt;/p&gt;
&lt;p&gt;How long does it take for the repo to get pushed to the live
site?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-14T12:03:50+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-05-14T12:03:52+01:00</updated-at>
      <user-id type="integer">29825</user-id>
      <user-name>Loren Norman</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Minor Corrections for Layout and Rendering Guide located at:
[http://guides.rubyonrails.org/layouts_and_rendering.html]()

I haven't checked if any of these were already fixed in the repo. Instead I applied for access to the repo so I can make such fixes in the future. For now, I'll have to just report here. Thanks for the great work guys!

- - -

**In**: 2.2.10 Rendering Vanilla JavaScript  
**Specifically**: The only instance of the space bounded string &quot; n &quot;  
**Typo**: &quot;with n&quot; should be &quot;with an&quot; or &quot;with a&quot;. Depends whichever is preferred.  
**English Grammar**: The proper English grammar is to use &quot;an&quot; when the next word begins with a vowel _sound_ and use &quot;a&quot; otherwise. However, in this case the next word is `.rjs` which could be spoken as &quot;_dot_ arr jay ess&quot; or &quot;_arr_ jay ess&quot;.  Thus it is ambiguous and both will work. This tends to show up a lot in English.

- - -

**In**: 2.2.12 Finding Layouts  
**Specifically**: The only instance of the space bounded string &quot; ot &quot;   
**Typo**: &quot;ot&quot; should be &quot;or&quot;

- - -

**In**: 2.2.13 Avoiding Double Render Errors  
**Specifically**: The 3rd (the last) code example  
**Style**: The entire code block is indented with two spaces. This is out of the ordinary, it is the _only_ one to do so on the page. Its harmless, but the extra spaces should be removed for consistency.

- - -

**In**: 3.1 Asset Tags  
**Specifically**: The list of functions.  
**Style**: The functions should be styled as code. All other lists of functions style the functions as code.

- - - 

**In**: 3.1.3 Linking to CSS Files with stylesheet\_link\_tag  
**Typo**: &quot;http://example.com/main.cs&quot; should be &quot;http://example.com/main.css&quot; in both the list item and the code example. (Note the `.css` extension)

- - -

**In**: 3.5 Using Nested Layouts (the last section)  
**Specifically**: The last code example  
**Style**: The indention for one of the `&lt;% end -%&gt;` is incorrect. It should be flush to the left, like all of the others.

- - -

**In**: 3.5 Using Nested Layouts (the last section)  
**Specifically**: The last sentence  
**Typo**: &quot;ommit&quot; should be &quot;omit&quot;</body>
      <body-html>&lt;div&gt;&lt;p&gt;Minor Corrections for Layout and Rendering Guide located at:&lt;br&gt;
&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;a href=
&quot;http://guides.rubyonrails.org/layouts_and_rendering.html&quot;&gt;http://guides.rubyonrails.org/layouts_and_rendering.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I haven't checked if any of these were already fixed in the
repo. Instead I applied for access to the repo so I can make such
fixes in the future. For now, I'll have to just report here. Thanks
for the great work guys!&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 2.2.10 Rendering Vanilla JavaScript&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: The only instance of the space
bounded string &quot; n &quot;&lt;br&gt;
&lt;strong&gt;Typo&lt;/strong&gt;: &quot;with n&quot; should be &quot;with an&quot; or &quot;with a&quot;.
Depends whichever is preferred.&lt;br&gt;
&lt;strong&gt;English Grammar&lt;/strong&gt;: The proper English grammar is to
use &quot;an&quot; when the next word begins with a vowel &lt;em&gt;sound&lt;/em&gt; and
use &quot;a&quot; otherwise. However, in this case the next word is
&lt;code&gt;.rjs&lt;/code&gt; which could be spoken as &quot;&lt;em&gt;dot&lt;/em&gt; arr jay
ess&quot; or &quot;&lt;em&gt;arr&lt;/em&gt; jay ess&quot;. Thus it is ambiguous and both will
work. This tends to show up a lot in English.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 2.2.12 Finding Layouts&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: The only instance of the space
bounded string &quot; ot &quot;&lt;br&gt;
&lt;strong&gt;Typo&lt;/strong&gt;: &quot;ot&quot; should be &quot;or&quot;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 2.2.13 Avoiding Double Render Errors&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: The 3rd (the last) code example&lt;br&gt;
&lt;strong&gt;Style&lt;/strong&gt;: The entire code block is indented with two
spaces. This is out of the ordinary, it is the &lt;em&gt;only&lt;/em&gt; one to
do so on the page. Its harmless, but the extra spaces should be
removed for consistency.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 3.1 Asset Tags&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: The list of functions.&lt;br&gt;
&lt;strong&gt;Style&lt;/strong&gt;: The functions should be styled as code. All
other lists of functions style the functions as code.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 3.1.3 Linking to CSS Files with
stylesheet_link_tag&lt;br&gt;
&lt;strong&gt;Typo&lt;/strong&gt;: &quot;&lt;a href=
&quot;http://example.com/main.cs&quot;&gt;http://example.com/main.cs&lt;/a&gt;&quot; should
be &quot;&lt;a href=
&quot;http://example.com/main.css&quot;&gt;http://example.com/main.css&lt;/a&gt;&quot; in
both the list item and the code example. (Note the
&lt;code&gt;.css&lt;/code&gt; extension)&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 3.5 Using Nested Layouts (the last
section)&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: The last code example&lt;br&gt;
&lt;strong&gt;Style&lt;/strong&gt;: The indention for one of the &lt;code&gt;&amp;lt;%
end -%&amp;gt;&lt;/code&gt; is incorrect. It should be flush to the left,
like all of the others.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 3.5 Using Nested Layouts (the last
section)&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: The last sentence&lt;br&gt;
&lt;strong&gt;Typo&lt;/strong&gt;: &quot;ommit&quot; should be &quot;omit&quot;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-29T05:24:24+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-05-29T05:24:27+01:00</updated-at>
      <user-id type="integer">58098</user-id>
      <user-name>Joseph Pecoraro</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>**In**: 3.5 Using Nested Layouts and 4 Changelog  
**Specifically**: There are two occurrences of &quot;subtemplate&quot;.
**Typo**: &quot;subtemplate&quot; should be &quot;sub-template&quot;</body>
      <body-html>&lt;div&gt;&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 3.5 Using Nested Layouts and 4
Changelog&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: There are two occurrences of
&quot;subtemplate&quot;. &lt;strong&gt;Typo&lt;/strong&gt;: &quot;subtemplate&quot; should be
&quot;sub-template&quot;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-29T05:30:37+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-05-29T05:30:42+01:00</updated-at>
      <user-id type="integer">58098</user-id>
      <user-name>Joseph Pecoraro</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>**In**: 3.1.3 Linking to CSS Files with stylesheet_link_tag  
**Specifically**: In one of the code examples.  
**Typo**: &quot;media =&gt;&quot; should be &quot;:media =&gt;&quot;  
**Also**: A few symbols are mentioned right before the code example, they should probably be styled as code as well. `:media`, `:rel`, or `:type.</body>
      <body-html>&lt;div&gt;&lt;p&gt;&lt;strong&gt;In&lt;/strong&gt;: 3.1.3 Linking to CSS Files with
stylesheet_link_tag&lt;br&gt;
&lt;strong&gt;Specifically&lt;/strong&gt;: In one of the code examples.&lt;br&gt;
&lt;strong&gt;Typo&lt;/strong&gt;: &quot;media =&amp;gt;&quot; should be &quot;:media =&amp;gt;&quot;&lt;br&gt;
&lt;strong&gt;Also&lt;/strong&gt;: A few symbols are mentioned right before the
code example, they should probably be styled as code as well.
&lt;code&gt;:media&lt;/code&gt;, &lt;code&gt;:rel&lt;/code&gt;, or &lt;code&gt;:type.&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-29T05:59:53+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-05-29T05:59:54+01:00</updated-at>
      <user-id type="integer">58098</user-id>
      <user-name>Joseph Pecoraro</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Best if you submit a patch after you get access. For your first change, it should be &quot;with an&quot; for consistency with other places in the guides.

On 3.5, I would let &quot;subtemplate&quot; stand - a quick search suggests it is more prevalent in actual usage than &quot;sub-template&quot;.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Best if you submit a patch after you get access. For your first
change, it should be &quot;with an&quot; for consistency with other places in
the guides.&lt;/p&gt;
&lt;p&gt;On 3.5, I would let &quot;subtemplate&quot; stand - a quick search
suggests it is more prevalent in actual usage than
&quot;sub-template&quot;.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-29T12:32:14+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-05-29T12:32:16+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>@Mike all the patches you okayed are checked in:
http://bit.ly/gBQba?commit=d2b856

You can close the tickets.

I'm a little weirded out by the &quot;subtemplate&quot; deal. Only cause the last paragraph has _both_ versions.  &quot;sub-template&quot; is in the prologue, and if I do a grep on all the guide's textile files it shows the only usage of either string is just in this file. I might be missing something.</body>
      <body-html>&lt;div&gt;&lt;p&gt;@Mike all the patches you okayed are checked in: &lt;a href=
&quot;http://bit.ly/gBQba?commit=d2b856&quot;&gt;http://bit.ly/gBQba?commit=d2b856&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can close the tickets.&lt;/p&gt;
&lt;p&gt;I'm a little weirded out by the &quot;subtemplate&quot; deal. Only cause
the last paragraph has &lt;em&gt;both&lt;/em&gt; versions. &quot;sub-template&quot; is in
the prologue, and if I do a grep on all the guide's textile files
it shows the only usage of either string is just in this file. I
might be missing something.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-29T15:13:28+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-05-29T15:13:30+01:00</updated-at>
      <user-id type="integer">58098</user-id>
      <user-name>Joseph Pecoraro</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hey thanks for this guide.

I think i found a minor bug:

&lt;%= stylesheet_link_tag &quot;main_print&quot;, media =&gt; &quot;print&quot; %&gt; should be
&lt;%= stylesheet_link_tag &quot;main_print&quot;, :media =&gt; &quot;print&quot; %&gt;</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hey thanks for this guide.&lt;/p&gt;
&lt;p&gt;I think i found a minor bug:&lt;/p&gt;
&lt;p&gt;&amp;lt;%= stylesheet_link_tag &quot;main_print&quot;, media =&amp;gt; &quot;print&quot;
%&amp;gt; should be&lt;br&gt;
&amp;lt;%= stylesheet_link_tag &quot;main_print&quot;, :media =&amp;gt; &quot;print&quot;
%&amp;gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-07-29T03:41:48+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state nil="true"></state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-07-29T03:41:49+01:00</updated-at>
      <user-id type="integer">64365</user-id>
      <user-name>bwbrowning</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>It's fixed in the repo, thank you!</body>
      <body-html>&lt;div&gt;&lt;p&gt;It's fixed in the repo, thank you!&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-07-29T09:25:04+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:state: 
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>available</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-07-29T09:25:08+01:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-07-29T09:25:54+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:state: available
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-07-29T09:25:57+01:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Thanks for this throrough guide!

Mini-correction: the last line of the last code snippet is missing an =. It should be:

&lt;%= render :file =&gt; 'layouts/application' %&gt;

instead of 

&lt;% render :file =&gt; 'layouts/application' %&gt;

Phillip</body>
      <body-html>&lt;div&gt;&lt;p&gt;Thanks for this throrough guide!&lt;/p&gt;
&lt;p&gt;Mini-correction: the last line of the last code snippet is
missing an =. It should be:&lt;/p&gt;
&lt;p&gt;&amp;lt;%= render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/p&gt;
&lt;p&gt;instead of&lt;/p&gt;
&lt;p&gt;&amp;lt;% render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/p&gt;
&lt;p&gt;Phillip&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-09-13T13:17:48+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-09-13T13:17:53+01:00</updated-at>
      <user-id type="integer">8294</user-id>
      <user-name>Phillip Oertel</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>This documentation is incredibly helpful. Thanks for writing it.

I think there's a typo, though. In the section about double-rendering, you say:

&gt; Note that the implicit render done by ActionController detects if render has been called, and thus avoids this error. So this code **will work with problems**:

when I think you meant to say:

&gt; Note that the implicit render done by ActionController detects if render has been called, and thus avoids this error. So this code will work **without** problems:</body>
      <body-html>&lt;div&gt;&lt;p&gt;This documentation is incredibly helpful. Thanks for writing
it.&lt;/p&gt;
&lt;p&gt;I think there's a typo, though. In the section about
double-rendering, you say:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Note that the implicit render done by ActionController detects
if render has been called, and thus avoids this error. So this code
&lt;strong&gt;will work with problems&lt;/strong&gt;:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;when I think you meant to say:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Note that the implicit render done by ActionController detects
if render has been called, and thus avoids this error. So this code
will work &lt;strong&gt;without&lt;/strong&gt; problems:&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-09-27T21:06:26+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:assigned_user: 1366
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-09-27T21:07:29+01:00</updated-at>
      <user-id type="integer">71197</user-id>
      <user-name>Phillip Calvin</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Phillip Oertel: I've checked it out and it was already corrected in its repo. Thank you!</body>
      <body-html>&lt;div&gt;&lt;p&gt;Phillip Oertel: I've checked it out and it was already corrected
in its repo. Thank you!&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-09-27T22:31:58+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-09-27T22:32:00+01:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Phillip Calvin: Already corrected in the repo as well, thank you!</body>
      <body-html>&lt;div&gt;&lt;p&gt;Phillip Calvin: Already corrected in the repo as well, thank
you!&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-09-27T22:33:59+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-09-27T22:34:02+01:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Xavier Noria: Thanks for checking.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Xavier Noria: Thanks for checking.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-09-27T23:21:26+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-09-27T23:21:28+01:00</updated-at>
      <user-id type="integer">71197</user-id>
      <user-name>Phillip Calvin</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Kind of a glaring oops at http://guides.rubyonrails.org/layouts_and_rendering.html#using-redirect-to. 301 is a permanent redirect, while 302 (or 307) is temporary. The guide has it reversed.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Kind of a glaring oops at &lt;a href=
&quot;http://guides.rubyonrails.org/layouts_and_rendering.html#using-redirect-to&quot;&gt;
http://guides.rubyonrails.org/layouts_and_rendering.html#using-redi...&lt;/a&gt;.
301 is a permanent redirect, while 302 (or 307) is temporary. The
guide has it reversed.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-10-20T23:16:44+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-10-20T23:16:46+01:00</updated-at>
      <user-id type="integer">73831</user-id>
      <user-name>Andrew</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Indeed, thank you Andrew. 

It was spotted also by Loren Norman (above) and is fixed in the repo.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Indeed, thank you Andrew.&lt;/p&gt;
&lt;p&gt;It was spotted also by Loren Norman (above) and is fixed in the
repo.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-10-21T00:15:00+01:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-10-21T00:15:02+01:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>image_tag - You say: &quot;If you don&#8217;t specify an extension, .png is assumed by default&quot;, but this doesn't to work out of the box!? Is it just my setup?</body>
      <body-html>&lt;div&gt;&lt;p&gt;image_tag - You say: &quot;If you don&amp;#8217;t specify an extension,
.png is assumed by default&quot;, but this doesn't to work out of the
box!? Is it just my setup?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-11-25T20:27:48+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-11-25T20:27:51+00:00</updated-at>
      <user-id type="integer">77801</user-id>
      <user-name>Jean-Luc Geering</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>In the section **3.5 Using Nested Layouts** , the code for app/views/layouts/news.html.erb should have the last line as

@@@ ruby
&lt;%**=** render :file =&gt; 'layouts/application' %&gt; 
@@@

instead of

@@@ ruby
&lt;% render :file =&gt; 'layouts/application' %&gt; 
@@@</body>
      <body-html>&lt;div&gt;&lt;p&gt;In the section &lt;strong&gt;3.5 Using Nested Layouts&lt;/strong&gt; , the
code for app/views/layouts/news.html.erb should have the last line
as&lt;/p&gt;
&lt;pre&gt;
&lt;code class=
&quot;ruby&quot;&gt;&amp;lt;%**=** render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;instead of&lt;/p&gt;
&lt;pre&gt;
&lt;code class=
&quot;ruby&quot;&gt;&amp;lt;% render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-12-24T00:39:37+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-12-24T00:39:42+00:00</updated-at>
      <user-id type="integer">80678</user-id>
      <user-name>puneet</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>In the section **3.5 Using Nested Layouts** , the code for app/views/layouts/news.html.erb should have the last line as

@@@ ruby
&lt;%= render :file =&gt; 'layouts/application' %&gt; 
@@@

instead of

@@@ ruby
&lt;% render :file =&gt; 'layouts/application' %&gt; 
@@@</body>
      <body-html>&lt;div&gt;&lt;p&gt;In the section &lt;strong&gt;3.5 Using Nested Layouts&lt;/strong&gt; , the
code for app/views/layouts/news.html.erb should have the last line
as&lt;/p&gt;
&lt;pre&gt;
&lt;code class=
&quot;ruby&quot;&gt;&amp;lt;%= render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;instead of&lt;/p&gt;
&lt;pre&gt;
&lt;code class=
&quot;ruby&quot;&gt;&amp;lt;% render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-12-24T00:40:12+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2009-12-24T00:40:17+00:00</updated-at>
      <user-id type="integer">80678</user-id>
      <user-name>puneet</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>In 2.2.13, when explaining the implicit rendering, on the paragraph before the third code sample:

Should add a &quot;no&quot;, because there will be no problems:

&quot;Note that the implicit render done by ActionController detects if render has been called, and thus avoids this error. So this code will work with *no* problems&quot;</body>
      <body-html>&lt;div&gt;&lt;p&gt;In 2.2.13, when explaining the implicit rendering, on the
paragraph before the third code sample:&lt;/p&gt;
&lt;p&gt;Should add a &quot;no&quot;, because there will be no problems:&lt;/p&gt;
&lt;p&gt;&quot;Note that the implicit render done by ActionController detects
if render has been called, and thus avoids this error. So this code
will work with &lt;em&gt;no&lt;/em&gt; problems&quot;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2010-01-13T15:42:44+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2010-01-13T15:42:46+00:00</updated-at>
      <user-id type="integer">82532</user-id>
      <user-name>Ramiro Rela</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Cool it is fixed in the repo, thanks Ramiro.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Cool it is fixed in the repo, thanks Ramiro.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2010-01-13T16:07:04+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2010-01-13T16:07:08+00:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>A few typos:

Section 2.2.7 (yellow box):
&quot;the file&quot; should mean &quot;the text&quot;.

Section 2.2.12:
The word &quot;ot&quot; should mean &quot;or&quot;.

Section 2.2.13:
&quot;So this code will work with problems:&quot; should mean &quot;So this code will work without problems:&quot;.

Thanks for the great guides! :-)</body>
      <body-html>&lt;div&gt;&lt;p&gt;A few typos:&lt;/p&gt;
&lt;p&gt;Section 2.2.7 (yellow box):&lt;br&gt;
&quot;the file&quot; should mean &quot;the text&quot;.&lt;/p&gt;
&lt;p&gt;Section 2.2.12:&lt;br&gt;
The word &quot;ot&quot; should mean &quot;or&quot;.&lt;/p&gt;
&lt;p&gt;Section 2.2.13:&lt;br&gt;
&quot;So this code will work with problems:&quot; should mean &quot;So this code
will work without problems:&quot;.&lt;/p&gt;
&lt;p&gt;Thanks for the great guides! :-)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2010-01-23T00:56:59+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: actionview layouts rendering
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering typo</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2010-01-23T00:57:04+00:00</updated-at>
      <user-id type="integer">32408</user-id>
      <user-name>Patrik Wenger</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hey Patrik everything fixed in the repo thank you very much :).

Please feel free to join docrails, you could fix stuff like that directly. Please PM lifo somewhere if you are interested.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hey Patrik everything fixed in the repo thank you very much
:).&lt;/p&gt;
&lt;p&gt;Please feel free to join docrails, you could fix stuff like that
directly. Please PM lifo somewhere if you are interested.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2010-01-23T12:24:13+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts rendering typo</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2010-01-23T12:24:15+00:00</updated-at>
      <user-id type="integer">11378</user-id>
      <user-name>Xavier Noria</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>The nested layout instructions (http://guides.rubyonrails.org/layouts_and_rendering.html#using-nested-layouts) don't seem to work in Rails 3. 

To test just generate a new rails app using rails --pre and try following the instructions exactly as specified in the guide. The result is &quot;no block given&quot; error.</body>
      <body-html>&lt;div&gt;&lt;p&gt;The nested layout instructions (&lt;a href=
&quot;http://guides.rubyonrails.org/layouts_and_rendering.html#using-nested-layouts&quot;&gt;http://guides.rubyonrails.org/layouts_and_rendering.html#using-nest...&lt;/a&gt;)
don't seem to work in Rails 3.&lt;/p&gt;
&lt;p&gt;To test just generate a new rails app using rails --pre and try
following the instructions exactly as specified in the guide. The
result is &quot;no block given&quot; error.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2010-02-07T13:22:56+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: actionview layouts rendering typo
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts nested rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2010-02-07T13:22:58+00:00</updated-at>
      <user-id type="integer">85554</user-id>
      <user-name>twinge</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">7211</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>&lt;% render :file =&gt; 'layouts/application' %&gt; 

should be

&lt;%**=** render :file =&gt; 'layouts/application' %&gt;</body>
      <body-html>&lt;div&gt;&lt;p&gt;&amp;lt;% render :file =&amp;gt; 'layouts/application' %&amp;gt;&lt;/p&gt;
&lt;p&gt;should be&lt;/p&gt;
&lt;p&gt;&amp;lt;%&lt;strong&gt;=&lt;/strong&gt; render :file =&amp;gt; 'layouts/application'
%&amp;gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2010-02-09T02:54:02+00:00</created-at>
      <creator-id type="integer">7211</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">15</number>
      <permalink>layouts-rendering</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>published</state>
      <tag>actionview layouts nested rendering</tag>
      <title>Layouts &amp; Rendering</title>
      <updated-at type="datetime">2010-02-09T02:54:05+00:00</updated-at>
      <user-id type="integer">85796</user-id>
      <user-name>wish i didnt need an account</user-name>
      <creator-name>Mike Gunderloy</creator-name>
      <assigned-user-name>Mike Gunderloy</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/15</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
  </versions>
</ticket>
