<?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; rails</title>
	<atom:link href="http://grapethinking.com/tag/rails/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>
		<item>
		<title>Installing Ubuntu Feisty Fawn on Virtual PC to Run Ruby on Rails</title>
		<link>http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails</link>
		<comments>http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails#comments</comments>
		<pubDate>Sun, 30 Mar 2008 05:21:18 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails</guid>
		<description><![CDATA[This post follows a 14 hour struggle to get Rails going on my Windoze Vista and my Windoze XP machine. I&#8217;ve been doing PHP development for a little while now, and have been using Xampp on both of my machines to create a local server for web-development. Recently we made <a href="http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>This post follows a 14 hour struggle to get <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> going on my Windoze Vista and my Windoze XP machine.   I&#8217;ve been doing <a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a> development for a little while now, and have been using Xampp on both of my machines to create a local server for web-development.  Recently we made a decision to build one of our in-house sites with Ruby on <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a>, to take advantage of its agile nature, plugin modules, and overall speed of development.  Boy was I in for a surprise.</p>
<p>Apparently, you cannot install Instant <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a>, unless you want to try to figure out how to merge your 2 instances of Apache, and MySQL that are now running.  In my hours of hunting, I could not come across a <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> plugin for Xampp.  I tried to do a stand-alone <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> install, and manually configure it, but then I could not use localhost for anything other than Ruby.  This whole time, all I can think is that if I only had a Mac&#8230; but wait, I have an idea.</p>
<p>I&#8217;m a big fan of Windows Virtual PC 2007, so why not try to just set-up a Virtual <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> instance, and     .  Plus, once I get it set up, I can copy the Virtual PC hard-drive, and pass it around the office to everyone having the same problem I am.. BRILLIANT.  For the record, I am writing this as I do it, so if I encounter FAIL, I&#8217;ll retitle, and post this in hopes someone can help.</p>
<p><span style="text-decoration: underline;">Step 1</span> &#8211;  <a title="Microsoft Virtual PC 2007" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=04D26402-3199-48A3-AFA2-2DC0B40A73B6&amp;displaylang=en" target="_blank">Install Virtual PC 2007.</a> This is one of the few free things that Microsoft offers, so I highly recommend you take advantage of it.   You will find it to be quite versatile&#8230; I like the idea of running everything in a virtual PC, so if I need to buy a new computer, I don&#8217;t loose all my software and settings.. I just copy the Virtual Hard Drive, and BAM!, I&#8217;m ready to go. I also spec&#8217;d a lightweight machine, and copied it over to a thumb drive with a copy of the Virtual PC install file.. now I can load my personal PC on any windows machine.</p>
<p><span style="text-decoration: underline;">Step 2</span> &#8211; <a title="Ubuntu 7.04 Download" href="http://releases.ubuntu.com/7.04/" target="_blank">Download Ubuntu 7.04</a> and <a title="Create A Virtual Machine" href="http://arcanecode.wordpress.com/2006/09/20/virtual-pc-step-by-step/" target="_blank">Create a Virtual Machine</a>.  I am using a <a title="Ubuntu 7.04 i386" href="http://releases.ubuntu.com/7.04/ubuntu-7.04-desktop-i386.iso" target="_blank">desktop version of Feisty Fawn</a>, and can vouch that what I lay out here will work for this version only.  To keep focus, I&#8217;m going to point you to <a title="Install Ubuntu on VPC2007" href="http://blogs.msdn.com/mikekol/archive/2007/08/06/making-ubuntu-7-04-work-under-virtual-pc-2007.aspx" target="_blank">Mike Kolitz</a> for a detailed <a href="http://grapethinking.com/tag/tutorial" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with tutorial">tutorial</a> to install on Virtual PC.  For some reason, some unanswered &#8220;issues&#8221; are not referenced though, and the answers are spread out, so if you encounter problems with <a title="Ubuntu Forum - Video Fix" href="https://help.ubuntu.com/community/FixVideoResolutionHowto" target="_blank">video resolution</a>, <a title="Ubuntu Forum - Sound Fix" href="https://help.ubuntu.com/community/HowToConfigureUbuntuForMicrosoftVirtualPC2004#head-c5acea3c700fbc5dff1329077dd5a26f1d85d759" target="_blank">sound</a>, <a title="Ubuntu Forum - Networking Fix" href="https://help.ubuntu.com/community/HowToConfigureUbuntuForMicrosoftVirtualPC2004#head-4e5604f5215e45f8dd510d92b4b3e77381dcd362" target="_blank">networking (first click network, then wired)</a>, mouse, or <a title="Linux Clock Runs Too Fast" href="http://support.microsoft.com/Default.aspx?kbid=918461" target="_blank">system time</a> &lt; &#8212; check out the links.  Please note &#8211; the install process takes about an hour, so try going for a jog, or pancakes..or both!</p>
<p>I edited the settings for my Virtual Machine to enable an &#8220;undo&#8221; function for the virtual drive.  This way I could play with some of these &#8220;fixes&#8221; without worry of putting myself back to zero.  When I make a system configuration change and it is successful, I go to the action menu, select close, and then select save state save changes (so I don&#8217;t have to wait on a reboot).</p>
<p>(Optional) Do a quick check for updates by going to terminal and typing (without quotes) &#8220;sudo apt-get update &amp;&amp; sudo apt-get upgrade&#8221;. This will probably take a little while, so go grab a bottle of wine or a few beers and start drinking!</p>
<p><span style="text-decoration: underline;">Step 3</span> &#8211; <a title="Install Lamp on Gutsy" href="http://joeabiraad.com/linuxunix/installing-lamp-on-ubuntu-710-linuxapachemysqlphp/100" target="_blank">Install LAMP</a> &#8211; Thanks to Joe Raad for the wonderful walk-through.  If you follow his instructions, you&#8217;ll have no problem, and you get the benefit of installing through apt-get vs. some package, which is one of many AWESOME <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> functions.  Unlike Windows, <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> uses the apt-get function to update not only your OS, but also all of the programs.. pretty sweet! We&#8217;ll try it out once we wrap up the Ruby install.</p>
<p><span style="text-decoration: underline;">Step 4</span> &#8211; 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> -</p>
<p>-Start with Ruby using apt-get <code><br />
</code></p>
<blockquote><p><code><span style="color: #0000ff;"> ~$ sudo apt-get install apt-get install ruby rdoc irb libyaml-ruby libzlib-ruby ri libopenssl-ruby ruby1.8-dev build-essential</span></code></p></blockquote>
<p>-Install Gems from source (we are not using apt-get here because Gems updates itself and <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a>, and we don&#8217;t want to confuse apt-get</p>
<blockquote><p><span style="color: #0000ff;"><code>~$ wget http://rubyforge.org/frs/download.<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>/34638/rubygems-1.1.0.tgz</code></span><br />
<span style="color: #0000ff;"> <code>~$ tar -xvzf rubygems-1.1.0.tgz</code></span><br />
<span style="color: #0000ff;"> <code>~$ rm rubygems-1.1.0.tgz</code></span><br />
<span style="color: #0000ff;"> <code>~$ cd rubygems-1.1.0</code></span><br />
<span style="color: #0000ff;"><code> </code><code>~$ sudo ruby setup.rb</code></span></p></blockquote>
<p><span style="color: #0000ff;"><code> </code></span><br />
-Allow Ruby Gems to update itself (and make sure gem installed properly)</p>
<blockquote><p><span style="color: #0000ff;"><code>~$ sudo gem update --system</code></span></p></blockquote>
<p><span style="color: #0000ff;"><code> </code></span>If you get a gem: command not found error.. create a symbolic link by executing this:</p>
<blockquote><p><span style="color: #0000ff;"><code>~$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem</code></span></p></blockquote>
<p>-Now, we install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> using Ruby Gems<span style="color: #0000ff;"><br />
</span></p>
<blockquote><p><span style="color: #0000ff;"><code>~$ sudo gem install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a></code></span><br />
<span style="color: #0000ff;"> <code>~$ PATH=${PATH}:/var/lib/gems/1.8/bin/</code></span><br />
<span style="color: #0000ff;"> <code>~$ export PATH</code></span></p></blockquote>
<p>-Add the Driver for MySQL<span style="color: #0000ff;"><code><br />
</code></span></p>
<blockquote><p><span style="color: #0000ff;"><code> ~$ sudo apt-get install libmysql-ruby</code></span></p></blockquote>
<p>Alright, now that the grunt work is over, you can start building some applications.  Have fun!</p>
<hr />
<h2>Update 05/03/08</h2>
<p>I finally got it working on Windows &#8211; <a title="Install Ruby on Windoze" href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp" target="_blank">check it out</a></p>
<hr />
<h2>Update 04/15/09</h2>
<p>If I want to use Ruby on <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> (ROR) I 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> vs. fighting to install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> on Windows machine.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp" title="Getting Rails to Work on a Windows Machine Running Xampp (March 31, 2008)">Getting Rails to Work on a Windows Machine Running Xampp</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/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

