<?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: Getting Started on Rails, Again</title>
	<atom:link href="http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/</link>
	<description>“What people forget is a journey to nowhere starts with a single step, too.”</description>
	<lastBuildDate>Sat, 19 Sep 2009 14:16:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tom</title>
		<link>http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/comment-page-1/#comment-30</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 23 Feb 2008 21:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/#comment-30</guid>
		<description>(Man this theme sucks. I need to fix that post-haste.)</description>
		<content:encoded><![CDATA[<p>(Man this theme sucks. I need to fix that post-haste.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/comment-page-1/#comment-29</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 23 Feb 2008 21:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/#comment-29</guid>
		<description>Thanks András. I&#039;m a bit cranky first thing in the morning and this was as much me venting as it was a complaint about Rails. I wouldn&#039;t be taking a third shot at it if I didn&#039;t think it had a lot to offer. The problem for me has been that I don&#039;t have any work that needs to get done in Rails, so I always just play around with it until I get frustrated. Hopefully this time I&#039;ve found enough to do to keep me going.

If nothing else, the post inspired your comment, which looks like it&#039;ll be a good resource for me and anyone else looking for a db primer. Thanks a lot for the comment and your patience.</description>
		<content:encoded><![CDATA[<p>Thanks András. I&#8217;m a bit cranky first thing in the morning and this was as much me venting as it was a complaint about Rails. I wouldn&#8217;t be taking a third shot at it if I didn&#8217;t think it had a lot to offer. The problem for me has been that I don&#8217;t have any work that needs to get done in Rails, so I always just play around with it until I get frustrated. Hopefully this time I&#8217;ve found enough to do to keep me going.</p>
<p>If nothing else, the post inspired your comment, which looks like it&#8217;ll be a good resource for me and anyone else looking for a db primer. Thanks a lot for the comment and your patience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tarsolya</title>
		<link>http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/comment-page-1/#comment-28</link>
		<dc:creator>tarsolya</dc:creator>
		<pubDate>Sat, 23 Feb 2008 17:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thosecleverkids.com/blog/2008/02/23/getting-started-on-rails-again/#comment-28</guid>
		<description>What is exactly your problem? Scaffolding is a very easy to do stuff in Rails (1.x or 2.x, doesn&#039;t matter), but is not recommended.

The &quot;misanthropes&quot; are right when they say that scaffolding is for the weak and you will not learn nor Ruby, nor Rails with that.

&gt; I’ll need to find the way to add indicies and 
&gt; other db tuning info to the migrations.

A little background:

Migrations are for tracking database schema changes over time. They are evil, I don&#039;t like them either and never use them in production, but do schema dumps and loads.

Onto your question:

You can add indexes with the following command:

# Simple index
add_index :table, :field

# Compound index
add_index :table, [:field_1, :field_2, :field_3]

# Unique index
add_index :table, [:field_1, :field_2], :unique =&gt; true

# Unique named index
add_index :table, [:field_1, :field_2], :unique =&gt; true, :name =&gt; &quot;my_unique_named_index&quot;

Migration Docs:
http://api.rubyonrails.org/classes/ActiveRecord/Migration.html

What you can do in a schema:
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#M001158

No fields shown could be that you have to restart the server after doing database schema changes, there is no auto model reloading.

Try to use Rails built-in script/generate or script/destory commands to create and delete various parts of the system. You can get help by typing:

# script/generate --help
# script/destroy --help

You can migrate to various versions to you schema by issuing the following command, where x is the version of the migration schema (eg. 009 is 9)

# rake db:migrate VERSION=x

Also, there are a lot of handy rake tasks regarding databases. Do the following in Rails root:

# You&#039;ll get all rake tasks
rake -T

# You&#039;ll get database related rake tasks
rake -T &#124; grep db

Oh, the mysql gem is installed successfully, sometimes it barfs about the rdoc, but it&#039;s ok. It has nothing to do with your problem and if the warning is gone, you should be set.

My advice is, don&#039;t get intimidated, don&#039;t use scaffolding, start small, read the api.

Yeah and I don&#039;t like the Rails community either, lots of stupid snobs, but there are &quot;a few good men&quot; :)

Cheers,
András</description>
		<content:encoded><![CDATA[<p>What is exactly your problem? Scaffolding is a very easy to do stuff in Rails (1.x or 2.x, doesn&#8217;t matter), but is not recommended.</p>
<p>The &#8220;misanthropes&#8221; are right when they say that scaffolding is for the weak and you will not learn nor Ruby, nor Rails with that.</p>
<p>&gt; I’ll need to find the way to add indicies and<br />
&gt; other db tuning info to the migrations.</p>
<p>A little background:</p>
<p>Migrations are for tracking database schema changes over time. They are evil, I don&#8217;t like them either and never use them in production, but do schema dumps and loads.</p>
<p>Onto your question:</p>
<p>You can add indexes with the following command:</p>
<p># Simple index<br />
add_index :table, :field</p>
<p># Compound index<br />
add_index :table, [:field_1, :field_2, :field_3]</p>
<p># Unique index<br />
add_index :table, [:field_1, :field_2], :unique =&gt; true</p>
<p># Unique named index<br />
add_index :table, [:field_1, :field_2], :unique =&gt; true, :name =&gt; &#8220;my_unique_named_index&#8221;</p>
<p>Migration Docs:<br />
<a href="http://api.rubyonrails.org/classes/ActiveRecord/Migration.html" rel="nofollow">http://api.rubyonrails.org/classes/ActiveRecord/Migration.html</a></p>
<p>What you can do in a schema:<br />
<a href="http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#M001158" rel="nofollow">http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#M001158</a></p>
<p>No fields shown could be that you have to restart the server after doing database schema changes, there is no auto model reloading.</p>
<p>Try to use Rails built-in script/generate or script/destory commands to create and delete various parts of the system. You can get help by typing:</p>
<p># script/generate &#8211;help<br />
# script/destroy &#8211;help</p>
<p>You can migrate to various versions to you schema by issuing the following command, where x is the version of the migration schema (eg. 009 is 9)</p>
<p># rake db:migrate VERSION=x</p>
<p>Also, there are a lot of handy rake tasks regarding databases. Do the following in Rails root:</p>
<p># You&#8217;ll get all rake tasks<br />
rake -T</p>
<p># You&#8217;ll get database related rake tasks<br />
rake -T | grep db</p>
<p>Oh, the mysql gem is installed successfully, sometimes it barfs about the rdoc, but it&#8217;s ok. It has nothing to do with your problem and if the warning is gone, you should be set.</p>
<p>My advice is, don&#8217;t get intimidated, don&#8217;t use scaffolding, start small, read the api.</p>
<p>Yeah and I don&#8217;t like the Rails community either, lots of stupid snobs, but there are &#8220;a few good men&#8221; <img src='http://www.thosecleverkids.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers,<br />
András</p>
]]></content:encoded>
	</item>
</channel>
</rss>
