<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>crunchlife: Ruby on Rails with Hardy Heron</title>
    <link>http://crunchlife.com/articles/2008/04/26/ruby-on-rails-with-hardy-heron</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Ruby on Rails with Hardy Heron</title>
      <description>&lt;p&gt;&lt;img src="/files/ruby.png" class="right"&gt;This Thursday, Canonical released &lt;a href="http://www.ubuntu.com/" target="_blank"&gt;Ubuntu&lt;/a&gt;, Hardy Heron, into the wild. Like many others, I immediately fired up a torrent and began downloading. From what I read of the aftermath, many launch day downloaders were not as lucky. Most Torrent servers became immediately inaccessible due to Hardy Heron&amp;#8217;s popular demand. It has been three days and the US update servers are still saturated. This happens every release and can only mean that Ubuntu&amp;#8217;s userbase is steadily growing.&lt;/p&gt;

&lt;p&gt;My installation went well, but with any new OS release comes problems and Hardy Heron was not an exception. I couldn&amp;#8217;t connect to &lt;a href="http://crunchlife.com/articles/2007/08/03/review-linksys-nas200" target="_blank"&gt;my NAS&lt;/a&gt; through Nautilus. None of my browser extensions worked and &lt;a href="http://www.rubyonrails.org/" target="_blank"&gt;Ruby on Rails&lt;/a&gt; was MIA. I decided to fix Rails first. Here are the steps I took to install Ruby on Rails on Ubuntu, Hardy Heron.&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;sudo apt-get install ruby&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;At this point I could not install Ruby on Rails with &lt;a href="http://rubygems.org/" target="_blank"&gt;RubyGems&lt;/a&gt; because of the following exception:&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;/usr/bin/gem:23: uninitialized constant Gem::GemRunner(NameError)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I opened up the source file and edited the offending line.&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;sudo gedit /usr/bin/gem&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Adding &lt;strong&gt;require &amp;#8216;rubygems/gem_runner&amp;#8217;&lt;/strong&gt; to the source file,&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;require 'rubygems'
require 'rubygems/gem_runner'&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I was then able to update RubyGems&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;sudo gem install rubygems-update&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and install Ruby on Rails and the Mongrel web server.&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;sudo gem install rails mongrel&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;At this point I had a working version of Rails on my installation of Ubuntu, Hardy Heron. To get back to work the only thing missing was the NetBeans Ruby IDE. If you haven&amp;#8217;t tried NetBeans for your Ruby on Rails projects, &lt;a href="http://crunchlife.com/articles/2007/10/25/the-netbeans-ruby-ide" target="_blank"&gt;I highly recommend it&lt;/a&gt;. It&amp;#8217;s located in the repos and only takes a few plugins to have Rails support out of the box.&lt;/p&gt;</description>
      <pubDate>Sat, 26 Apr 2008 14:20:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:c4860403-cbd3-439c-9e29-9681d677b943</guid>
      <author>Ryan Baxter</author>
      <link>http://crunchlife.com/articles/2008/04/26/ruby-on-rails-with-hardy-heron</link>
      <category>Ubuntu</category>
      <category>Rails</category>
      <trackback:ping>http://crunchlife.com/articles/trackback/56</trackback:ping>
    </item>
  </channel>
</rss>

