<?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>Grape Thinking &#187; ror</title>
	<atom:link href="http://grapethinking.com/tag/ror/feed" rel="self" type="application/rss+xml" />
	<link>http://grapethinking.com</link>
	<description>Fusing Mind with Vine</description>
	<lastBuildDate>Mon, 30 Apr 2012 19:52:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Getting Rails to Work on a Windows Machine Running Xampp</title>
		<link>http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp</link>
		<comments>http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp#comments</comments>
		<pubDate>Mon, 31 Mar 2008 07:14:53 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp</guid>
		<description><![CDATA[Wow&#8230; so I wrote a post on my struggles getting Rails to work on my Windows Machine, and then I figure it out. I&#8217;ve been developing in various languages, and using Xampp to for my server, database, and programming language (Apache, MySQL, PHP). Nevertheless, I have finally got it working, <a href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>Wow&#8230; so I wrote <a title="Installed On Linux" href="http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails" target="_blank">a post</a> on my struggles getting <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> to work on my Windows Machine, and then I figure it out. I&#8217;ve been developing in various languages, and using Xampp to for my server, database, and <a href="http://grapethinking.com/tag/programming" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with programming">programming</a> language (Apache, MySQL, <a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a>). Nevertheless, I have finally got it working, and it was a lot simpler than I had figured. In case you&#8217;ve come here and you&#8217;re yet to get Xampp&#8230; I&#8217;ll walk you through the whole process. If you already have it, then go ahead and skip to STEP 2</p>
<p>STEP 1 &#8211; Install Xampp &#8211; <a title="Apache Friends - Home of Xampp" href="http://www.apachefriends.org/en/index.html" target="_blank">ApacheFriends</a> has made it really easy by giving us a <a title="34 MB - Xampp Windows Installer" href="http://www.apachefriends.org/download.php?xampp-win32-1.6.6a-installer.exe" target="_blank">simple windows installer to download</a>. If your interested in developing with <a title="33 MB - Pearl Windows Installer" href="http://www.apachefriends.org/download.php?xampp-win32-perl-addon-5.8.8-2.2.8-installer.exe" target="_blank">Perl</a>, <a title="6MB Windows Installer" href="http://www.apachefriends.org/download.php?xampp-win32-tomcat-addon-6.0.14-2.2.8-installer.exe" target="_blank">Tomcat</a>, you can download their Add-Ons by clicking the links. Once you download, just give it a click and follow the on-screen instructions. I recommend you install Xampp at the default c:\xampp (if you do not, remember to replace the code below with your installation directory). Here&#8217;s a video to show you how simple it is&#8230;don&#8217;t be fooled, it takes a little longer than the video shows.</p>
<p>[There is a video that cannot be displayed in this feed. <a href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp">Visit the blog entry to see the video.]</a></p>
<p>STEP 2 &#8211; Install Ruby &#8211; Thanks to RubyForge, you can download an <a title="23MB - Windows Installer" href="http://rubyforge.org/projects/rubyinstaller/" target="_blank">easy one-click Ruby installer</a> to use here. Once you download, click to open, and follow the instructions. I recommend you install Ruby at c:\xampp\ruby so it falls in line with your other <a href="http://grapethinking.com/tag/programming" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with programming">programming</a> languages, etc&#8230;</p>
<p>STEP 3 &#8211; Install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> &#8211; Fortunately, the Windows version of Ruby comes with RubyGems already set up. Open your Command Prompt (start-&gt; run-&gt; cmd -OR- start-&gt; programs-&gt; accessories -&gt; command prompt) and type the following commands.</p>
<p>Do the gem update from the bin directory in <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a>.   For my installation:</p>
<blockquote><p><span style="color: #0000ff;"><code>cd c:\ruby\bin</code></span><br />
<span style="color: #0000ff;"><code>gem update </code></span><br />
You may be prompted several times to choose which gem.  Pick the highest version for (mswin32)<br />
<span style="color: #0000ff;"><code>gem install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> --include-dependencies</code></span></p></blockquote>
<p>There may be some delays, and the install could take a while. If you encounter an error trying to use the gem command, just restart the Command Prompt.</p>
<p>STEP 4 &#8211; Create a <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> App &#8211; While your still in Command Prompt, type the following Command (without the brackets, and change &#8220;your-app-name&#8221; to whatever you wish to call your application)</p>
<blockquote><p><span style="color: #0000ff;"><code><a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> C:/xampp/htdocs/&lt;your-app-name&gt;</code></span></p></blockquote>
<p>STEP 5 &#8211; Configure Apache &#8211; With your Xampp installation, http://localhost (localhost:80) defaults to the Xampp browser control panel, which displays your status, tests, etc.. We want to be able to use Ruby, without disrupting this service, or interfering with our standard Xampp settings. Open your Xampp directory (in our case C:\Xampp) and browse to Apache\conf\httpd.conf and open the httpd.conf file in a text editor or other text editor of your choice.</p>
<p>Scroll all the way to the bottom, and add the following:</p>
<blockquote><p><span style="color: #0000ff;"><code>Listen 3000</code><br />
<code>LoadModule rewrite_module modules/mod_rewrite.so</code><code><br />
</code><code>#################################</code><br />
<code># RUBY SETUP</code><br />
<code>#################################</code><br />
<code>&lt;virtualHost *:3000&gt;<br />
ServerName <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a></code></span><span style="color: #0000ff;"><code><br />
DocumentRoot "c:/xampp/htdocs/&lt;your-app-name&gt;/public"<br />
</code><code>&lt;Directory "c:/xampp/htdocs/&lt;your-app-name&gt;/public/"&gt;</code></span></p></blockquote>
<blockquote><p><span style="color: #0000ff;"><code>Options ExecCGI FollowSymLinks</code></span><br />
<span style="color: #0000ff;"><code>AllowOverride all</code></span><br />
<span style="color: #0000ff;"><code>Allow from all</code></span><br />
<span style="color: #0000ff;"><code>Order allow,deny</code></span><br />
<span style="color: #0000ff;"><code>AddHandler cgi-script .cgi</code></span><br />
<span style="color: #0000ff;"><code>AddHandler fastcgi-script .fcgi</code></span></p></blockquote>
<blockquote><p><span style="color: #0000ff;"><code>&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</code></span><br />
<span style="color: #0000ff;"><code>#################################</code></span><br />
<span style="color: #0000ff;"><code># RUBY SETUP</code></span><br />
<span style="color: #0000ff;"><code>#################################</code></span></p></blockquote>
<p>Finally &#8211; Check it Out &#8211; Point your browser to http://localhost:3000 and you should see the &#8220;Welcome Aboard&#8221; from ROR.</p>
<p>If your also looking for some editors. A nice simple free <a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a> editor with great extensions is &#8220;<a title="The Free PSPad" href="http://www.pspad.com/en/download.php" target="_blank">PSPad</a>&#8220;. For hardcore coding, I recommend <a title="Zend Framework IDE" href="http://www.zend.com/en/downloads/" target="_blank">Zend</a>(free for 30 days). For a nice simple free <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> Editor, &#8220;<a title="PlasmaCode RoRED Free Editor" href="http://www.plasmacode.com/index.html" target="_blank">RoRED</a>&#8220;, something a little more intense I would say go with the free &#8220;<a title="NetBeans IDE" href="http://download.netbeans.org/netbeans/6.0/final/" target="_blank">NetBeans</a>&#8221; (don&#8217;t forget the .jdk).</p>
<hr />
<h2>Update 04/15/09</h2>
<p>I now dual boot to <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> to play with ROR vs. fighting to install ruby on <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> on a windows machine.  I found it to be an endless battle of debugging.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails" title="Installing Ubuntu Feisty Fawn on Virtual PC to Run Ruby on Rails (March 30, 2008)">Installing Ubuntu Feisty Fawn on Virtual PC to Run Ruby on Rails</a></li>
	<li><a href="http://grapethinking.com/hardy-heron-makes-me-happy" title="Hardy Heron Makes Me Happy (April 24, 2008)">Hardy Heron Makes Me Happy</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp/feed</wfw:commentRss>
		<slash:comments>66</slash:comments>
		</item>
	</channel>
</rss>

