<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rails new vs build</title>
	<atom:link href="http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/</link>
	<description>I think you are lost...</description>
	<lastBuildDate>Wed, 08 Feb 2012 11:59:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: deepak</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-20227</link>
		<dc:creator>deepak</dc:creator>
		<pubDate>Sun, 09 Oct 2011 12:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-20227</guid>
		<description>Thank You very much , I was looking for this</description>
		<content:encoded><![CDATA[<p>Thank You very much , I was looking for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wander</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-20094</link>
		<dc:creator>Wander</dc:creator>
		<pubDate>Wed, 27 Jul 2011 01:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-20094</guid>
		<description>Hello everyone :), i like this post, 

Well, i would like to know a litter more  about build and know how to control it in the view....

i means, if i do something like this:

5.times {
  @article.comments.build
}

in the view will be appears 5 times.

so, my point is, that i would like to take one of them and give to it a position in a table tag

some idea about how can i do it?

</description>
		<content:encoded><![CDATA[<p>Hello everyone :), i like this post, </p>
<p>Well, i would like to know a litter more  about build and know how to control it in the view&#8230;.</p>
<p>i means, if i do something like this:</p>
<p>5.times {<br />
  @article.comments.build<br />
}</p>
<p>in the view will be appears 5 times.</p>
<p>so, my point is, that i would like to take one of them and give to it a position in a table tag</p>
<p>some idea about how can i do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wxianfeng</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-19870</link>
		<dc:creator>wxianfeng</dc:creator>
		<pubDate>Thu, 05 May 2011 08:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-19870</guid>
		<description>clean!!!</description>
		<content:encoded><![CDATA[<p>clean!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aji</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-19795</link>
		<dc:creator>Aji</dc:creator>
		<pubDate>Mon, 21 Mar 2011 13:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-19795</guid>
		<description>good</description>
		<content:encoded><![CDATA[<p>good</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Monk</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-19728</link>
		<dc:creator>Kevin Monk</dc:creator>
		<pubDate>Mon, 03 Jan 2011 23:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-19728</guid>
		<description>I must&#039;ve visited this blog post about 5 or more times and this comment makes me laugh every time. It&#039;s funny because it&#039;s true.</description>
		<content:encoded><![CDATA[<p>I must&#8217;ve visited this blog post about 5 or more times and this comment makes me laugh every time. It&#8217;s funny because it&#8217;s true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cuzic4n</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-12504</link>
		<dc:creator>cuzic4n</dc:creator>
		<pubDate>Thu, 11 Mar 2010 02:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-12504</guid>
		<description>i was wondering why my &quot;comments&quot; validation routines were not going off.. it was because i was using the append &quot;&lt;&lt;&quot;.. 

so i started searching around for new vs build create rails.. and came across build.. 

@article.comments &lt;&lt; @comment  .. will not trigger validation routines.

@c = @article.comments.build
set @c to stuff. and try @c.save or @c.save! you will see that the validation routines in the comment model go off as expected which is what i needed</description>
		<content:encoded><![CDATA[<p>i was wondering why my &#8220;comments&#8221; validation routines were not going off.. it was because i was using the append &#8220;&lt;&lt;&quot;.. </p>
<p>so i started searching around for new vs build create rails.. and came across build.. </p>
<p>@article.comments &lt;&lt; @comment  .. will not trigger validation routines.</p>
<p>@c = @article.comments.build<br />
set @c to stuff. and try @c.save or @c.save! you will see that the validation routines in the comment model go off as expected which is what i needed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrbrdo</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-5824</link>
		<dc:creator>mrbrdo</dc:creator>
		<pubDate>Tue, 27 Oct 2009 05:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-5824</guid>
		<description>I did some further research into new vs. build vs. create in Ruby on Rails, which someone might fight useful.
My observations and code examples can be found in my blog post here: http://blog.mrbrdo.net/2009/10/27/ruby-on-rails-new-vs-create-vs-build/
I also included some comments from this blog post. I hope this information will be useful to someone!</description>
		<content:encoded><![CDATA[<p>I did some further research into new vs. build vs. create in Ruby on Rails, which someone might fight useful.<br />
My observations and code examples can be found in my blog post here: <a href="http://blog.mrbrdo.net/2009/10/27/ruby-on-rails-new-vs-create-vs-build/" rel="nofollow">http://blog.mrbrdo.net/2009/10/27/ruby-on-rails-new-vs-create-vs-build/</a><br />
I also included some comments from this blog post. I hope this information will be useful to someone!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-3759</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 29 Jul 2009 21:23:54 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-3759</guid>
		<description>Another big thing is that @article.comments.build doesn&#039;t save the comment until @article is saved.   Whereas if you do:

@comment = Comment.new
@article.comments &lt;&lt; @comment

@comment is saved right then even if @article later fails validation and is never saved you will still have @comment in the comments table</description>
		<content:encoded><![CDATA[<p>Another big thing is that @article.comments.build doesn&#8217;t save the comment until @article is saved.   Whereas if you do:</p>
<p>@comment = Comment.new<br />
@article.comments &lt;&lt; @comment</p>
<p>@comment is saved right then even if @article later fails validation and is never saved you will still have @comment in the comments table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Molte</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-3062</link>
		<dc:creator>Molte</dc:creator>
		<pubDate>Sun, 24 May 2009 14:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-3062</guid>
		<description>By writing
@comment = @article.comments.new
the foreign key will also be set.</description>
		<content:encoded><![CDATA[<p>By writing<br />
@comment = @article.comments.new<br />
the foreign key will also be set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://vinhboy.com/blog/2009/01/15/rails-new-vs-build/#comment-1686</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Wed, 22 Apr 2009 16:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://vinhboy.com/?p=435#comment-1686</guid>
		<description>Thanks - found this with a Google on &#039;rails build versus new&#039;</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; found this with a Google on &#8216;rails build versus new&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

