<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Deep Jive Interests &#187; Programming</title>
	<atom:link href="http://www.deepjiveinterests.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deepjiveinterests.com</link>
	<description>Thoughts on Web 2.0, Social Media, Marketing.</description>
	<lastBuildDate>Thu, 23 Dec 2010 02:51:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Quick and Dirty Ruby on RAILS (more to come)</title>
		<link>http://www.deepjiveinterests.com/2006/03/29/quick-and-dirty-ruby-on-rails-more-to-come/</link>
		<comments>http://www.deepjiveinterests.com/2006/03/29/quick-and-dirty-ruby-on-rails-more-to-come/#comments</comments>
		<pubDate>Wed, 29 Mar 2006 05:31:42 +0000</pubDate>
		<dc:creator>Tony Hung</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.windham-york.com/blog/2006/03/29/quick-and-dirty-ruby-on-rails-more-to-come/</guid>
		<description><![CDATA[Quick and Dirty Rails 1. Create rails: &#8220;rails recipe_book&#8221; 2. Create databasei in mysql 3. Create table in database &#8212; PLURAL, e.g. &#8220;recipes&#8221; NOT &#8220;recipe&#8221; 4. EDIT ruby database so it points to database &#8212; &#8220;config/database.yml&#8221; 5. Create model of (&#8230;)</p><p><a href="http://www.deepjiveinterests.com/2006/03/29/quick-and-dirty-ruby-on-rails-more-to-come/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Quick and Dirty Rails</strong></p>
<p>1. Create rails: &#8220;rails recipe_book&#8221;<br />
2. Create databasei in mysql<br />
3. Create table in database &#8212; PLURAL, e.g. &#8220;recipes&#8221; NOT &#8220;recipe&#8221;<br />
4. EDIT ruby database so it points to database &#8212; &#8220;config/database.yml&#8221;<br />
5. Create model of table: go to apps directory &#8220;ruby script\generate model TABLE_NAME (i.e. recipe)&#8221; [SINGULAR]<br />
6. Create controller of table: go to apps dire &#8220;ruby script\generate controller TABLE_NAME (i.e. recipe)&#8221; [SINGULAR]<br />
7. Edit controller so it creates scaffold: &#8220;scaffold :TABLE_NAME&#8221; [SINGULAR]</p>
<p>** all done!**<br />
8. You can edit all elements of CRUD &#8212; just edit the apps/view<br />
9. LIST: appls/view &#8211;> create list.rhtml, and edit it.</p>
<p>** relational tables<br />
10. If there is a higher group that it belongs to do the following<br />
11. Create table in database &#8212; PLURAL, e.g. &#8220;groups&#8221;<br />
12. EDIT FIRST table so it has one entry &#8212; TABLE_NAME_id (singluar!)<br />
13. Create model of table and controller table<br />
14. EDIT model of first table so it says &#8220;belongs to :TABLE2&#8243; (SINGULAR)<br />
15. EDIT model of second table so it says &#8220;has_many : TABLE1&#8243; (PLURAL)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepjiveinterests.com/2006/03/29/quick-and-dirty-ruby-on-rails-more-to-come/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

