<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Defective Kit &#187; Programming</title>
	<atom:link href="http://defectivekit.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://defectivekit.com</link>
	<description>it&#039;s not broken.</description>
	<lastBuildDate>Tue, 03 Apr 2012 22:13:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='defectivekit.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Defective Kit &#187; Programming</title>
		<link>http://defectivekit.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://defectivekit.com/osd.xml" title="Defective Kit" />
	<atom:link rel='hub' href='http://defectivekit.com/?pushpress=hub'/>
		<item>
		<title>Ruby of Rails</title>
		<link>http://defectivekit.com/2007/01/30/ruby-of-rails/</link>
		<comments>http://defectivekit.com/2007/01/30/ruby-of-rails/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 06:46:21 +0000</pubDate>
		<dc:creator>Charlie</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://charlief.wordpress.com/2007/01/30/ruby-of-rails/</guid>
		<description><![CDATA[[disclaimer -- I am not a full blown ruby programmer. I only play one on tv.] To install rails after you install Ruby, put in&#8230; prompt&#62; gem install rails &#8211;remote This will promote the rails install process. Make sure you select yes for everything it asks. If you decide to use Apache, then please enter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=defectivekit.com&#038;blog=685452&#038;post=13&#038;subd=charlief&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><IMG SRC="http://www.rubyonrails.org/images/rails.png"></p>
<p>[disclaimer -- I am not a full blown ruby programmer.  I only play one on tv.]</p>
<p>To install rails after you install Ruby, put in&#8230;<br />
prompt&gt; gem install rails &#8211;remote</p>
<p>This will promote the rails install process.  Make sure you select yes for everything it asks.</p>
<p>If you decide to use Apache, then please enter the line in your httpd.conf file&#8230;</p>
<p>&lt;VirtualHost *&gt;<br />
 ServerName todo<br />
   DocumentRoot /[directory]<br />
   &lt;Directory /[directory];<br />
   Options ExecCGI FollowSymLinks<br />
   AllowOverride all<br />
   Allow from all<br />
   Order allow,deny<br />
 &lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p>This will redirect Apache to the necessary Ruby guts.</p>
<p>This code will also serve as a beginning for MySQL database for Ruby.  Refer to the Rails4ruby.pdf for more detail on this publishing for Ruby.</p>
<p>SQL Code:</p>
<p>CREATE TABLE `categories` (<br />
`id` smallint(5) unsigned NOT NULL auto_increment,<br />
`category` varchar(20) NOT NULL default &#8221;,<br />
`created_on` timestamp(14) NOT NULL,<br />
`updated_on` timestamp(14) NOT NULL,<br />
PRIMARY KEY (`id`),<br />
UNIQUE KEY `category_key` (`category`)<br />
) TYPE=MyISAM COMMENT=&#8217;List of categories&#8217;;</p>
<p>If you see a forbidden on your Apache, then one of the following have occured&#8230;</p>
<p>1) The app/directory has not been created using rails.  at the prompt, put&#8230;<br />
&gt; rails [appname]<br />
it will populate the directory with necessary information for the creation of the ruby application.</p>
<p>2) the incorrect directory in the virtual hosts code has been put in the Apache httpd.conf file.  Make sure that the directory is correct.</p>
<p>That&#8217;s to my knowledge anyway&#8230;  If you start fiddling with Apache&#8217;s httpd.conf file without knowing what you are doing, then you are at your own costs for fixing it.  It&#8217;s not for toying with unless you know exactly how to fix it / or you know what you&#8217;re doing.</p>
<p>&gt; ruby script/generate controller [App]<br />
- Creates a new controller. The controller determines the flow for moving around the application.  Modify the code accordingly to have it respond in a specific way or react in a certain way determined by the browser input. (Hence it&#8217;s called the controller).</p>
<p>More later&#8230;.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/charlief.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/charlief.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/charlief.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/charlief.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/charlief.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/charlief.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/charlief.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/charlief.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/charlief.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/charlief.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/charlief.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/charlief.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/charlief.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/charlief.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/charlief.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/charlief.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=defectivekit.com&#038;blog=685452&#038;post=13&#038;subd=charlief&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://defectivekit.com/2007/01/30/ruby-of-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8adf368ef71e1a79fc5a0b91e26fd6c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">charlief</media:title>
		</media:content>
	</item>
	</channel>
</rss>
