<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Ruby brothers - Belongs_to :counter_cache Comments</title>
  <id>tag:rubybrothers.ru,2009:/2007/4/24/belongs_to_counter_cache/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://rubybrothers.ru/2007/4/24/belongs_to_counter_cache/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/4/24/belongs_to_counter_cache" rel="alternate" type="text/html"/>
  <updated>2007-05-31T19:50:13Z</updated>
  <entry xml:base="http://rubybrothers.ru">
    <author>
      <name>antono</name>
    </author>
    <id>tag:rubybrothers.ru,2007-04-24:192:225</id>
    <published>2007-05-31T19:50:13Z</published>
    <updated>2007-05-31T19:50:13Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://rubybrothers.ru/2007/4/24/belongs_to_counter_cache" rel="alternate" type="text/html"/>
    <title>Comment on 'Belongs_to :counter_cache' by antono</title>
<content type="html">&lt;p&gt;Beast, кстати, криво считает количество тем&#8230; однажды в форуме оказалось -2 ветки :(&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://rubybrothers.ru">
    <author>
      <name>BadMinus</name>
    </author>
    <id>tag:rubybrothers.ru,2007-04-24:192:196</id>
    <published>2007-04-29T02:33:41Z</published>
    <updated>2007-04-29T02:33:41Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://rubybrothers.ru/2007/4/24/belongs_to_counter_cache" rel="alternate" type="text/html"/>
    <title>Comment on 'Belongs_to :counter_cache' by BadMinus</title>
<content type="html">&lt;p&gt;Спасибо. Очень хорошо что обьяснили для чего это нужно, а то я начинающий в веб программинге на руби =)
буду рад если в будущем будете так же описывать так.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://rubybrothers.ru">
    <author>
      <name>que</name>
    </author>
    <id>tag:rubybrothers.ru,2007-04-24:192:195</id>
    <published>2007-04-26T08:17:12Z</published>
    <updated>2007-04-26T08:17:12Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://rubybrothers.ru/2007/4/24/belongs_to_counter_cache" rel="alternate" type="text/html"/>
    <title>Comment on 'Belongs_to :counter_cache' by que</title>
<content type="html">&lt;p&gt;http://railscasts.com/episodes/23&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://rubybrothers.ru">
    <author>
      <name>ega</name>
    </author>
    <id>tag:rubybrothers.ru,2007-04-24:192:194</id>
    <published>2007-04-25T01:14:22Z</published>
    <updated>2007-04-25T01:14:22Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://rubybrothers.ru/2007/4/24/belongs_to_counter_cache" rel="alternate" type="text/html"/>
    <title>Comment on 'Belongs_to :counter_cache' by ega</title>
<content type="html">&lt;p&gt;:counter_cache &#8211; caches the number of belonging objects on the associate class through use of increment_counter and decrement_counter. The counter cache is incremented when an object of this class is created and decremented when it‘s destroyed. This requires that a column named &#8221;#{table_name}_count&#8221; (such as comments_count for a belonging Comment class) is used on the associate class (such as a Post class). You can also specify a custom counter cache column by given that name instead of a true/false value to this option (e.g., :counter_cache =&amp;gt; :my_custom_counter.)&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://rubybrothers.ru">
    <author>
      <name>Konstantin Tumalevich</name>
    </author>
    <id>tag:rubybrothers.ru,2007-04-24:192:193</id>
    <published>2007-04-24T18:51:37Z</published>
    <updated>2007-04-24T18:51:37Z</updated>
    <category term="Ruby on Rails"/>
    <category term="Tips &amp; Tricks"/>
    <category term="&#1053;&#1086;&#1074;&#1080;&#1095;&#1082;&#1091;"/>
    <link href="http://rubybrothers.ru/2007/4/24/belongs_to_counter_cache" rel="alternate" type="text/html"/>
    <title>Comment on 'Belongs_to :counter_cache' by Konstantin Tumalevich</title>
<content type="html">&lt;p&gt;А как поле называется, а то спать охота уже и в апи лазать не тянет))&lt;/p&gt;</content>  </entry>
</feed>
