<?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 2.0 Scaffolding</title>
	<atom:link href="http://davidlynch.org/blog/2008/01/rails-20-scaffolding/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/</link>
	<description>has a blog</description>
	<lastBuildDate>Wed, 10 Mar 2010 21:22:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Steve Johnson</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-7762</link>
		<dc:creator>Steve Johnson</dc:creator>
		<pubDate>Tue, 08 Dec 2009 02:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-7762</guid>
		<description>I understand the value of going to a command line only way of generating scaffolding, but to remove the optional controller name from the syntax is brain dead. Rename all the files? If we are supposed to use things like generators to save time/work, then we should be able to specify the appropriate parameters.</description>
		<content:encoded><![CDATA[<p>I understand the value of going to a command line only way of generating scaffolding, but to remove the optional controller name from the syntax is brain dead. Rename all the files? If we are supposed to use things like generators to save time/work, then we should be able to specify the appropriate parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Very Happy Blog &#187; Rails 2.1.0 scaffolding</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-4900</link>
		<dc:creator>Very Happy Blog &#187; Rails 2.1.0 scaffolding</dc:creator>
		<pubDate>Sat, 09 May 2009 15:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-4900</guid>
		<description>[...] Ruby on Rails tutorials are, for a start, incorrect, because they&#8217;re old (Thanks to David Lynch for helping me on that front), but even those that feature the slightly more up to date information [...]</description>
		<content:encoded><![CDATA[<p>[...] Ruby on Rails tutorials are, for a start, incorrect, because they&#8217;re old (Thanks to David Lynch for helping me on that front), but even those that feature the slightly more up to date information [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learning Ruby on Rails &#124; peterkim blog</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-4264</link>
		<dc:creator>Learning Ruby on Rails &#124; peterkim blog</dc:creator>
		<pubDate>Mon, 13 Apr 2009 02:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-4264</guid>
		<description>[...] http://davidlynch.org/blog/2008/01/rails-20-scaffolding/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://davidlynch.org/blog/2008/01/rails-20-scaffolding/" rel="nofollow">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-3746</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Sat, 14 Mar 2009 17:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-3746</guid>
		<description>The book I am learnign from has error with relation to this,, I am learning on 2.0 and the book refers to 1.2 this seems to clear up some of the issues I have! Thanks</description>
		<content:encoded><![CDATA[<p>The book I am learnign from has error with relation to this,, I am learning on 2.0 and the book refers to 1.2 this seems to clear up some of the issues I have! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shrieking.net &#187; Rails 2.1.0 scaffolding</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-957</link>
		<dc:creator>Shrieking.net &#187; Rails 2.1.0 scaffolding</dc:creator>
		<pubDate>Sun, 14 Sep 2008 20:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-957</guid>
		<description>[...] Ruby on Rails tutorials are, for a start, incorrect, because they&#8217;re old (Thanks to David Lynch for helping me on that front), but even those that feature the slightly more up to date information [...]</description>
		<content:encoded><![CDATA[<p>[...] Ruby on Rails tutorials are, for a start, incorrect, because they&#8217;re old (Thanks to David Lynch for helping me on that front), but even those that feature the slightly more up to date information [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-477</link>
		<dc:creator>Davide</dc:creator>
		<pubDate>Thu, 15 May 2008 08:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-477</guid>
		<description>Hi David,
nice tip, thanks.
What about migrations on the database _after_ you generate the scaffold?
For example I want to add field4:type to ModelName. I should do:

$ ./script/generate migration add_field4

Then open the db/migration/file_that_refers_to_my_migration and write &quot;add_column :model_name :field4, :type&quot; in &quot;self.up&quot; and &quot;remove_column :model_name :field4 in &quot;self.down&quot;. 
Now, do I have to edit ModelName&#039;s view in order to be able to edit, show and create a new ModelName entry in my database including field4? Or there&#039;s a way to re-scaffold the model migrated? 

Thanks a lot.
Cheers
Davide</description>
		<content:encoded><![CDATA[<p>Hi David,<br />
nice tip, thanks.<br />
What about migrations on the database _after_ you generate the scaffold?<br />
For example I want to add field4:type to ModelName. I should do:</p>
<p>$ ./script/generate migration add_field4</p>
<p>Then open the db/migration/file_that_refers_to_my_migration and write &#8220;add_column :model_name :field4, :type&#8221; in &#8220;self.up&#8221; and &#8220;remove_column :model_name :field4 in &#8220;self.down&#8221;.<br />
Now, do I have to edit ModelName&#8217;s view in order to be able to edit, show and create a new ModelName entry in my database including field4? Or there&#8217;s a way to re-scaffold the model migrated? </p>
<p>Thanks a lot.<br />
Cheers<br />
Davide</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-474</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 07 May 2008 19:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-474</guid>
		<description>Hi David,

thanks for your post. Saved me several hours++ of wondering, while even a German RoR book here that claims to be RoR2.0 ready, shows old syntax and never gets it straight.

Cheers
Markus</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>thanks for your post. Saved me several hours++ of wondering, while even a German RoR book here that claims to be RoR2.0 ready, shows old syntax and never gets it straight.</p>
<p>Cheers<br />
Markus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saurabh purnaye</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-65</link>
		<dc:creator>saurabh purnaye</dc:creator>
		<pubDate>Tue, 29 Jan 2008 13:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-65</guid>
		<description>thanks...good info..</description>
		<content:encoded><![CDATA[<p>thanks&#8230;good info..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-57</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 27 Jan 2008 23:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-57</guid>
		<description>Thank you very much for this post! I was having similar problems, and the documentation on this new &quot;feature&quot; is still sparse at best. But now I know what&#039;s up with the scaffold. Thanks!</description>
		<content:encoded><![CDATA[<p>Thank you very much for this post! I was having similar problems, and the documentation on this new &#8220;feature&#8221; is still sparse at best. But now I know what&#8217;s up with the scaffold. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://davidlynch.org/blog/2008/01/rails-20-scaffolding/comment-page-1/#comment-48</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 25 Jan 2008 22:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://davidlynch.org/blog/2008/01/rails-20-scaffolding/#comment-48</guid>
		<description>Matt: You can get documentation by just running the script with no arguments -- &quot;./scripts/generate scaffold&quot;  (It gives the most thorough overview of it I managed to find, at any rate.)

It looks like &lt;a href=&quot;http://wiki.rubyonrails.org/rails/pages/ScaffoldGenerator&quot; rel=&quot;nofollow&quot;&gt;pre-2.0&lt;/a&gt; you could tell it the controller name, but the syntax to the command got totally changed.

I think that if you want to scaffold a controller whose model-name is different to the controller&#039;s then you need to generate it and then just rename it.  I think all you need to change is the filename and the &lt;code&gt;map.resources :foo&lt;/code&gt; in routes.rb.  (Or maybe not.  I haven&#039;t tried...)</description>
		<content:encoded><![CDATA[<p>Matt: You can get documentation by just running the script with no arguments &#8212; &#8220;./scripts/generate scaffold&#8221;  (It gives the most thorough overview of it I managed to find, at any rate.)</p>
<p>It looks like <a href="http://wiki.rubyonrails.org/rails/pages/ScaffoldGenerator" rel="nofollow">pre-2.0</a> you could tell it the controller name, but the syntax to the command got totally changed.</p>
<p>I think that if you want to scaffold a controller whose model-name is different to the controller&#8217;s then you need to generate it and then just rename it.  I think all you need to change is the filename and the <code>map.resources :foo</code> in routes.rb.  (Or maybe not.  I haven&#8217;t tried&#8230;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
