<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">1366</assigned-user-id>
  <attachments-count type="integer">1</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2008-10-31T17:38:10+00:00</created-at>
  <creator-id type="integer">23933</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer">9903</milestone-id>
  <number type="integer">1311</number>
  <permalink>add-content_forname-helper</permalink>
  <priority type="integer">715</priority>
  <project-id type="integer">8994</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>resolved</state>
  <tag>actionpack helper patch tested tiny</tag>
  <title>Add content_for?(name) helper </title>
  <updated-at type="datetime">2009-06-23T22:50:18+01:00</updated-at>
  <user-id type="integer">17393</user-id>
  <user-name>Repository</user-name>
  <creator-name>Darragh Curran</creator-name>
  <assigned-user-name>Pratik</assigned-user-name>
  <url>http://rails.lighthouseapp.com/projects/8994/tickets/1311</url>
  <milestone-title>2.x</milestone-title>
  <original-body>Sometimes I do things in my layout based on whether content has been yielded to a particular content_for label.

Easy to do at the moment - but I reckoned it might be nice to hide this implementation detail. (similar to how we used to do @content_for_something but now do yield :something)

@content_for_right_col.present? 

becomes

content_for?(:right_col)</original-body>
  <latest-body>Sometimes I do things in my layout based on whether content has been yielded to a particular content_for label.

Easy to do at the moment - but I reckoned it might be nice to hide this implementation detail. (similar to how we used to do @content_for_something but now do yield :something)

@content_for_right_col.present? 

becomes

content_for?(:right_col)</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Sometimes I do things in my layout based on whether content has
been yielded to a particular content_for label.&lt;/p&gt;
&lt;p&gt;Easy to do at the moment - but I reckoned it might be nice to
hide this implementation detail. (similar to how we used to do
@content_for_something but now do yield :something)&lt;/p&gt;
&lt;p&gt;@content_for_right_col.present?&lt;/p&gt;
&lt;p&gt;becomes&lt;/p&gt;
&lt;p&gt;content_for?(:right_col)&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Sometimes I do things in my layout based on whether content has been yielded to a particular content_for label.

Easy to do at the moment - but I reckoned it might be nice to hide this implementation detail. (similar to how we used to do @content_for_something but now do yield :something)

@content_for_right_col.present? 

becomes

content_for?(:right_col)</body>
      <body-html>&lt;div&gt;&lt;p&gt;Sometimes I do things in my layout based on whether content has
been yielded to a particular content_for label.&lt;/p&gt;
&lt;p&gt;Easy to do at the moment - but I reckoned it might be nice to
hide this implementation detail. (similar to how we used to do
@content_for_something but now do yield :something)&lt;/p&gt;
&lt;p&gt;@content_for_right_col.present?&lt;/p&gt;
&lt;p&gt;becomes&lt;/p&gt;
&lt;p&gt;content_for?(:right_col)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-31T17:38:10+00:00</created-at>
      <creator-id type="integer">23933</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">1311</number>
      <permalink>add-content_forname-helper</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>actionpack helper patch tested tiny</tag>
      <title>add content_for?(name) helper </title>
      <updated-at type="datetime">2008-10-31T17:38:13+00:00</updated-at>
      <user-id type="integer">23933</user-id>
      <user-name>Darragh Curran</user-name>
      <creator-name>Darragh Curran</creator-name>
      <assigned-user-name nil="true"></assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1311</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>Looks good. Will add after 2.3 is released.

Thanks.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Looks good. Will add after 2.3 is released.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-06T17:13:26+00:00</created-at>
      <creator-id type="integer">23933</creator-id>
      <diffable-attributes type="yaml">--- 
:assigned_user: 
:title: &quot;add content_for?(name) helper &quot;
</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">1311</number>
      <permalink>add-content_forname-helper</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>actionpack helper patch tested tiny</tag>
      <title>Add content_for?(name) helper </title>
      <updated-at type="datetime">2009-03-06T17:13:31+00:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Darragh Curran</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1311</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>Resolved in 9cb8c812f2a23ab5653a7888740a014a02c97c18</body>
      <body-html>&lt;div&gt;&lt;p&gt;Resolved in 9cb8c812f2a23ab5653a7888740a014a02c97c18&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-21T17:42:32+01:00</created-at>
      <creator-id type="integer">23933</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">1311</number>
      <permalink>add-content_forname-helper</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>resolved</state>
      <tag>actionpack helper patch tested tiny</tag>
      <title>Add content_for?(name) helper </title>
      <updated-at type="datetime">2009-06-21T17:42:34+01:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Darragh Curran</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1311</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>(from [9cb8c812f2a23ab5653a7888740a014a02c97c18]) Add content_for?(:name) helper to check if content_for(:name) is present [#1311 state:resolved]

Signed-off-by: Pratik Naik &lt;pratiknaik@gmail.com&gt;
http://github.com/rails/rails/commit/9cb8c812f2a23ab5653a7888740a014a02c97c18</body>
      <body-html>&lt;div&gt;&lt;p&gt;(from &lt;a href=
&quot;/projects/8994/changesets/9cb8c812f2a23ab5653a7888740a014a02c97c18&quot;
title=
&quot;Changeset [9cb8c812f2a23ab5653a7888740a014a02c97c18]&quot;&gt;[9cb8c812f2a23ab5653a7888740a014a02c97c18]&lt;/a&gt;)
Add content_for?(:name) helper to check if content_for(:name) is
present [&lt;a href=&quot;/projects/8994/tickets/1311&quot; title=
&quot;Ticket #1311&quot;&gt;#1311&lt;/a&gt; state:resolved]&lt;/p&gt;
&lt;p&gt;Signed-off-by: Pratik Naik &lt;a&gt;pratiknaik@gmail.com&lt;/a&gt;&lt;br&gt;
&lt;a href=
&quot;http://github.com/rails/rails/commit/9cb8c812f2a23ab5653a7888740a014a02c97c18&quot;&gt;
http://github.com/rails/rails/commit/9cb8c812f2a23ab5653a7888740a01...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-21T21:25:13+01:00</created-at>
      <creator-id type="integer">23933</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">1311</number>
      <permalink>add-content_forname-helper</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>resolved</state>
      <tag>actionpack helper patch tested tiny</tag>
      <title>Add content_for?(name) helper </title>
      <updated-at type="datetime">2009-06-21T21:25:15+01:00</updated-at>
      <user-id type="integer">17393</user-id>
      <user-name>Repository</user-name>
      <creator-name>Darragh Curran</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1311</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>(from [fa926b8eff2198ac06736c5085b7069a0a8ebf39]) Add content_for?(:name) helper to check if content_for(:name) is present [#1311 state:resolved]

Signed-off-by: Pratik Naik &lt;pratiknaik@gmail.com&gt;
http://github.com/rails/rails/commit/fa926b8eff2198ac06736c5085b7069a0a8ebf39</body>
      <body-html>&lt;div&gt;&lt;p&gt;(from &lt;a href=
&quot;/projects/8994/changesets/fa926b8eff2198ac06736c5085b7069a0a8ebf39&quot;
title=
&quot;Changeset [fa926b8eff2198ac06736c5085b7069a0a8ebf39]&quot;&gt;[fa926b8eff2198ac06736c5085b7069a0a8ebf39]&lt;/a&gt;)
Add content_for?(:name) helper to check if content_for(:name) is
present [&lt;a href=&quot;/projects/8994/tickets/1311&quot; title=
&quot;Ticket #1311&quot;&gt;#1311&lt;/a&gt; state:resolved]&lt;/p&gt;
&lt;p&gt;Signed-off-by: Pratik Naik &lt;a&gt;pratiknaik@gmail.com&lt;/a&gt;&lt;br&gt;
&lt;a href=
&quot;http://github.com/rails/rails/commit/fa926b8eff2198ac06736c5085b7069a0a8ebf39&quot;&gt;
http://github.com/rails/rails/commit/fa926b8eff2198ac06736c5085b706...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-23T22:50:16+01:00</created-at>
      <creator-id type="integer">23933</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">1311</number>
      <permalink>add-content_forname-helper</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>resolved</state>
      <tag>actionpack helper patch tested tiny</tag>
      <title>Add content_for?(name) helper </title>
      <updated-at type="datetime">2009-06-23T22:50:18+01:00</updated-at>
      <user-id type="integer">17393</user-id>
      <user-name>Repository</user-name>
      <creator-name>Darragh Curran</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/1311</url>
      <milestone-title>2.x</milestone-title>
    </version>
  </versions>
  <attachments type="array">
    <attachment type="Attachment">
      <code>491465eb7ee01071b257d2eb76ae8ed17cf10864</code>
      <content-type>text/plain</content-type>
      <created-at type="datetime">2008-10-31T17:38:10+00:00</created-at>
      <filename>add_has_content_for_helper.diff</filename>
      <height type="integer" nil="true"></height>
      <id type="integer">58623</id>
      <size type="integer">2556</size>
      <uploader-id type="integer">23933</uploader-id>
      <width type="integer" nil="true"></width>
      <url>http://rails.lighthouseapp.com/attachments/58623/add_has_content_for_helper.diff</url>
    </attachment>
  </attachments>
</ticket>
