<?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>Under the Digital Cloud &#187; Ruby on Rails</title>
	<atom:link href="http://www.ocsblog.com/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ocsblog.com</link>
	<description>Perspectives from the staff at OCS Solutions</description>
	<lastBuildDate>Mon, 02 Nov 2009 01:29:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Ruby 1.9.1 for Windows</title>
		<link>http://www.ocsblog.com/2009/09/installing-ruby-1-9-1-for-windows/</link>
		<comments>http://www.ocsblog.com/2009/09/installing-ruby-1-9-1-for-windows/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 13:41:24 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ocsblog.com/?p=57</guid>
		<description><![CDATA[Installing Ruby on Windows used to be very simple, due to the one-click installer.   Unfortunately, the project hasn&#8217;t had a release recently and the most recent stable release is 1.8.6, which contains some potential security issues.
Installing the Latest Binary Release
The solution is relatively simple though.  To start, uninstall any copy of Ruby you may have [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Ruby on Windows used to be very simple, due to the <a href="http://rubyforge.org/projects/rubyinstaller/" target="_blank">one-click installer</a>.   Unfortunately, the project hasn&#8217;t had a release recently and the most recent stable release is 1.8.6, which contains some potential security issues.</p>
<p><strong>Installing the Latest Binary Release</strong></p>
<p>The solution is relatively simple though.  To start, uninstall any copy of Ruby you may have already.  This will reduce confusion as to what version is installed and where.  In this guide we&#8217;ll focus on 1.9.1 but  the instructions are the same for 1.8.7.</p>
<p>Go to the <a href="http://www.ruby-lang.org/en/downloads/" target="_blank">Ruby downloads</a> page and select the 1.8.7 or 1.9.1 binary.</p>
<p>Unzip the file to <code>C:\Ruby</code>.  Then you&#8217;ll need to  add <code>C:\Ruby\bin</code> to your path by following these directions:</p>
<ol>
<li>Click on the Start Menu then right click on Computer and click Properties</li>
<li>Click Advanced System Settings</li>
<li>Click Environment Variables</li>
<li>Under System Variables, double click on the line with PATH in it and add <code>;C:\Ruby\bin</code> to the end of it.  The semicolon is very important and must be before <code>C:\Ruby\bin</code></li>
<li>Click OK and restart any command prompt windows</li>
</ol>
<p>You&#8217;re now ready to run Ruby for Windows!  You can install most gems in the usual way you would on Linux or MacOS with the <code>gem</code> command.</p>
<p><strong>UPDATE &#8211; Missing DLL Files<br />
</strong></p>
<p>There are some missing DLL&#8217;s for some necessary Ruby gems (including built-in ones), such as readline, sqlite3, and gzip.  I&#8217;ve compiled a ZIP file containing them, just put them in your <code>C:\Ruby\bin</code> folder, available <a href="http://www.4gigs.com/files/ruby-dll-windows.zip">here</a>.  If you aren&#8217;t comfortable using it, just go to the various sites for each library that is missing and grab the DLL from there (this is what I did).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocsblog.com/2009/09/installing-ruby-1-9-1-for-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Ruby 1.9</title>
		<link>http://www.ocsblog.com/2009/08/using-ruby-1-9/</link>
		<comments>http://www.ocsblog.com/2009/08/using-ruby-1-9/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 10:06:31 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://www.ocsblog.com/?p=46</guid>
		<description><![CDATA[If you&#8217;d like to use Ruby 1.9.x in your OCS hosting account, you can follow the guide we have put together on the OCS Support Wiki called Installing Your Own Ruby Stack.  It shows you how to install the entire Ruby stack, including your own set of Rubygems.  The only downside to this is that [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;d like to use Ruby 1.9.x in your OCS hosting account, you can follow the guide we have put together on the OCS Support Wiki called <a href="http://wiki.ocssolutions.com/Installing_Your_Own_Ruby">Installing Your Own Ruby Stack</a>.  It shows you how to install the entire Ruby stack, including your own set of Rubygems.  The only downside to this is that you must use Mongrel, you cannot use Passenger.</p>
<p>We are however working on a setup that will allow you to run Nginx+Passenger both on our cPanel and Webmin servers.  We&#8217;ll announce it here when complete (hopefully very soon), and if you&#8217;re interested in beta testing please <a href="http://www.ocssolutions.com/contact.php">contact us</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocsblog.com/2009/08/using-ruby-1-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passenger 2.2.2 Upgrade</title>
		<link>http://www.ocsblog.com/2009/05/passenger-222-upgrade/</link>
		<comments>http://www.ocsblog.com/2009/05/passenger-222-upgrade/#comments</comments>
		<pubDate>Mon, 18 May 2009 03:17:35 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://www.ocsblog.com/?p=35</guid>
		<description><![CDATA[On select production cPanel servers, we have upgraded to Passenger 2.2.2.  This new release offers a variety of new features and substantial performance improvements, but we&#8217;ve had to make one slight change to our Passenger deployment routine.  Due to this, you&#8217;ll have to add a line to your .htaccess file in your public folder in [...]]]></description>
			<content:encoded><![CDATA[<p>On select production cPanel servers, we have upgraded to Passenger 2.2.2.  This new release offers a variety of new features and substantial performance improvements, but we&#8217;ve had to make one slight change to our <a href="http://wiki.ocssolutions.com/Deploying_a_Rails_Application_With_Passenger" target="_blank">Passenger deployment routine</a>.  Due to this, you&#8217;ll have to add a line to your <code>.htaccess</code> file in your <code>public</code> folder in your Rails app with the contents:</p>
<pre>PassengerAppRoot /home/user/rails_apps/yourapp</pre>
<p>Replace &#8220;user&#8221; with your username and &#8220;rails_apps/yourapp&#8221;  with the path to your Rails application. </p>
<p>On the servers we have deployed the upgrade to we have added this to any existing <code>.htaccess</code> file or created a new one with that line in it.  However, if you use Subversion or Git repository, you&#8217;ll need to add this change to it so that the next time you do an update this change will be preserved. </p>
<p>You have not made this change already, please do so as soon as you can.  This will ensure upgrades on the rest of our shared hosting cluster will go smoothly.</p>
<p>On the off chance that your Rails application isn&#8217;t functioning correctly, make sure the above line is in your <code>.htaccess</code> file in the public folder of your Rails application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocsblog.com/2009/05/passenger-222-upgrade/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Perfect Rails Development Environment in Windows</title>
		<link>http://www.ocsblog.com/2009/04/my-perfect-rails-development-environment-in-windows/</link>
		<comments>http://www.ocsblog.com/2009/04/my-perfect-rails-development-environment-in-windows/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 01:36:21 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ocsblog.com/?p=26</guid>
		<description><![CDATA[The Problem
I normally do most of my Rails development in Linux, but I do have a Windows development environment setup as well, because most of my non-development time is spent in Windows and I like being able to quickly work on a Rails project without having to switch to my Linux machine.
The problem though with [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Problem</strong></p>
<p>I normally do most of my Rails development in Linux, but I do have a Windows development environment setup as well, because most of my non-development time is spent in Windows and I like being able to quickly work on a Rails project without having to switch to my Linux machine.</p>
<p>The problem though with Rails development on Windows is two-fold:</p>
<ol>
<li>Ruby and Rails do not cooperate with Windows as well as they should sometimes</li>
<li>Microsoft doesn&#8217;t cooperate with UNIX well at all</li>
</ol>
<p>So rather than try and lay blame as to who&#8217;s fault this is, I&#8217;ve developed a workaround work flow that works quite nicely.</p>
<p><strong>Software I Use</strong></p>
<p>To make Rails development easier in Windows, I use:</p>
<ul>
<li>The <a href="http://www.e-texteditor.com/" target="_blank">E &#8211; TextEditor</a></li>
<li>Cygwin (installed at first by e, but customized later on by me)</li>
<li><a href="http://code.google.com/p/puttycyg/" target="_blank">puttycyg</a> (because Windows console windows suck)</li>
</ul>
<p><strong>Installing the Environment</strong></p>
<p>I recommend removing Ruby for Windows (the one-click installer variety) before you get started.  It will make things a lot easier for you down the road, and unless you&#8217;re doing Ruby for Windows applications development, you won&#8217;t need it.  I also recommend uninstalling Cygwin as well if you have installed it previously, because the e will automatically setup Cygwin for you with some pretty good defaults.</p>
<p>Download a trial of the E &#8211; TextEditor and install it.  When you first run it, it will want to install Cygwin.  Let it do so.  Pick Manual if you want to customize the software.  You can choose Automatic though and be just  fine, because you can always rerun the Cygwin setup (by going to the <a href="http://www.cygwin.com/" target="_blank">Cygwin website</a> and downloading their installer) and add or update features later.  If you choose the manual method, it would be a good idea to include Subversion, Git, and perhaps other languages like Python and a C compiler to enable you to use other UNIX software inside your Cygwin installation.</p>
<p>Once you&#8217;ve done this, you&#8217;re almost ready to go.  If you like the Windows console, then you can stop here &#8211; but I don&#8217;t.  That&#8217;s where <a href="http://code.google.com/p/puttycyg/" target="_blank">puttycyg</a> comes in.   It&#8217;s basically a modified PuTTY version that works with Cygwin.  Using this program you can connect to your Cygwin instance, but having all the options of display and scrollback that come with PuTTY.  Let&#8217;s face it, being limited to 2 fonts in the Windows console really isn&#8217;t fun.  I&#8217;m still amazed Microsoft hasn&#8217;t fixed this.</p>
<p>Once you&#8217;ve done this, you can pretty much proceed with development of Rails application using the same commands you would on a Linux or Mac machine (well, at least with 99% compatibility).  You can even access your Windows drives with the /cygdrive/c (replace c with the drive you want to use) path in Cygwin.</p>
<p><strong>Conclusion</strong></p>
<p>While this isn&#8217;t the most ideal setup, it works well for most things, and enables you to use Capistrano deployments much more easily than you can in Windows.  Git&#8217;s native Windows version has a long way to go, and thus the Cygwin near-native UNIX version of Git makes using Git under Windows a far more productive task.</p>
<p>In this guide I&#8217;m using the E &#8211; TextEditor.  You could replace this with any other editor that you like and achieve similiar results.  You can even use Vim or Emacs inside Cygwin.  Either way, I still recommend using Cygwin, because the native Windows Ruby interpreter and Rails support for Windows will cause you problems down the road.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocsblog.com/2009/04/my-perfect-rails-development-environment-in-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
