Ruby on Rails with Hardy Heron
Posted by Ryan Baxter Sat, 26 Apr 2008 21:20:00 GMT
This Thursday, Canonical released Ubuntu, 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’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’s userbase is steadily growing.
My installation went well, but with any new OS release comes problems and Hardy Heron was not an exception. I couldn’t connect to my NAS through Nautilus. None of my browser extensions worked and Ruby on Rails was MIA. I decided to fix Rails first. Here are the steps I took to install Ruby on Rails on Ubuntu, Hardy Heron.
sudo apt-get install rubyAt this point I could not install Ruby on Rails with RubyGems because of the following exception:
/usr/bin/gem:23: uninitialized constant Gem::GemRunner(NameError)I opened up the source file and edited the offending line.
sudo gedit /usr/bin/gemAdding require ‘rubygems/gem_runner’ to the source file,
require 'rubygems'
require 'rubygems/gem_runner'I was then able to update RubyGems
sudo gem install rubygems-updateand install Ruby on Rails and the Mongrel web server.
sudo gem install rails mongrelAt 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’t tried NetBeans for your Ruby on Rails projects, I highly recommend it. It’s located in the repos and only takes a few plugins to have Rails support out of the box.
- Meta 3 trackbacks, no comments, permalink, rss, atom
The NetBeans Ruby IDE
Posted by Ryan Baxter Thu, 25 Oct 2007 14:26:00 GMT
Some time ago I wrote about my search for the perfect Ruby IDE. I understand that the criteria for perfect is different for everyone, but in my previous article I outlined the eleven features that best describe my perfect Ruby IDE. I will admit that I haven’t kept up with my analysis. Like everyone else, I have a lot of other things to do and evaluating a dozen IDEs takes a lot of time. Apologies aside – I have found an IDE that fits all of my expectations. My search might be over.
Roman Strobl’s recently published article, NetBeans: Ruby Developer’s New Best Friend, highlights the features and improvements of NetBeans’ efforts in the Ruby IDE arena. I’m consistently amazed by the quality of writing published by InfoQ and Strobl’s work is a fine example. I recommend reading his article and then downloading the NetBeans Ruby IDE to test drive it yourself.
NetBean’s Ruby IDE has the best code completion I’ve found in a Ruby IDE. It rivals Visual Studio on the .NET platform. The IDE is lightweight. At no point during my testing did it ever slow down. Its source control integration works well. The default font is easy on the eyes and compliments the Ruby syntax highlighting scheme. My favorite feature is the garbage collection button located in the upper right-hand corner of the application. Some developers might think the application poorly designed for needing this feature, but coming from Visual Studio, I applaud it.
The NetBean’s Ruby IDE is still in development, but the testing I’ve done hasn’t uncovered any issues worth mentioning. While working on one of my side projects I haven’t noticed any appreciable difference between the Windows and Linux versions. Have I mentioned yet that the NetBean’s Ruby IDE is free? I’ve found my new daily driver. Kudos NetBeans!
Download it here.
- Posted in Reviews
- Meta no comments, permalink, rss, atom
Free Ruby on Rails Book
Posted by Ryan Baxter Thu, 25 Oct 2007 13:51:00 GMT
Free? Yes, that’s right! A totally free Ruby on Rails book. Those fine fellows at Rails Envy mentioned it in episode #2 of the Rails Envy Podcast. What’s the catch? You only have 37 days from today to download this book. Do it now! Thanks to Patrick Lenz for writing the book and thanks to the guys at Rails Envy for making it known.
- Meta no comments, permalink, rss, atom
rake aborted! No such file or directory - /tmp/mysql.sock
Posted by Ryan Baxter Sat, 06 Oct 2007 20:40:00 GMT
If you’re running into the above error message when trying to perform a Rails migration on Debian or Ubuntu then you might try adding the following line to your database.yml file:
socket: /var/run/mysqld/mysqld.sockMy database.yml file looks sorta like this:
development:
database: crunchlife_development
adapter: mysql
host: localhost
username: mysql_user
password: @!#?@!
socket: /var/run/mysqld/mysqld.sock
test:
database: crunchlife_test
adapter: mysql
host: localhost
username: mysql_user
password: @!#?@!
socket: /var/run/mysqld/mysqld.sock
production:
database: crunchlife_production
adapter: mysql
host: mysql.ryanbaxter.net
username: mysql_user
password: @!#?@!Good luck and happy migrations!
- Meta 8 comments, permalink, rss, atom
I Want My IDE Update
Posted by Ryan Baxter Tue, 21 Aug 2007 04:14:00 GMT
I started writing some Ruby code this past weekend for a new project that I’m involved in. Rather than download an IDE mentioned in my previous article, I Want My IDE, I decided to use the gedit text editor that comes bundled with Ubuntu Linux.
Attempting to capture the experience Mac users get from using TextMate, I installed the Class Browser, File Browser Pane, Project Manager, Snap open, and Snippets plugins from live.gnome.org. I also enabled line numbers, current line highlighting, and bracket matching. It’s not quite TextMate, but it’s not a bad choice either.
I had initially stated that my top two needs of an IDE were Subversion (SVN) integration and code completion. I didn’t have either of these with gedit, but I didn’t find myself missing them either. I’ve grown accustomed to using SVN from the command-line and ruby-doc.org didn’t slow me down too much while looking up class definitions.
Overall I’m quite pleased, but I have to admit that installing gedit plugins was a bit tricky and I never did get my fonts to look like those found in the TextMate-like Gedit tutorial.
- Meta 2 comments, permalink, rss, atom
I Want My IDE
Posted by Ryan Baxter Fri, 10 Aug 2007 02:32:00 GMT
The majority of my academic and professional programming career has been spent writing code using an integrated development environment (IDE). I’ve dabbled with Eclipse, Microsoft Visual Studio, Macrodobe Dreamweaver, and various Borland products. Rather than juggle multiple text editors and source control consoles, I find it easier to stay organized using an IDE on large projects. When editing config files or writing scripts I prefer a lightweight text editor. In Linux, vi or gedit is my choice. Notepad2 is at the top of my Windows list.
A few months ago I decided to learn Ruby and the Ruby on Rails framework. I began with the obligatory Hello World program and quickly progressed through a series of tutorials using vi and gedit to get the job done. Since then, I’ve begun some larger projects and am quickly finding myself losing focus and missing the benefits of an IDE. Consulting Google, I compiled a list of prospective IDEs to begin my evaluation. I’m willing to give each of them a fair chance at becoming my Rails development environment, but have a few questions before I begin. What, if any, IDEs have I missed? How long should I try each one?
Needs (in order of importance):
- Linux compatible
- Project Browsing
- SVN integration
- Syntax Highlighting
- Code Completion
- Active Community
- Unit Testing
- Debugging
- Auto-indent
- Plugin support
- Less than $100
The list:
*Each IDE/editor was capable of Project Browsing, Syntax Highlighting, and compatible with Linux.
- Aptana RadRails
Pros- Good SVN integration.
- The latest Beta has working Code Completion.
- Built on Eclipse.
- More Rails features than Eclipse + DLTK.
- Many plugins inherited from Eclipse
- Free.
- Code Completion is broken in the current stable release.
- Built on Eclipse.
- Eclipse + DLTK
Pros- SVN integration.
- DLTK has Code Completion.
- Tried and true.
- Vast library of plugins.
- Active community.
- Free.
- Eclipse is slow and consumes a lot of memory.
- FreeRIDE
Pros- Auto-indenting.
- Debugging.
- Free.
- No SVN integration.
- No Code Completion.
- Performance could be an issue b/c it’s a native Ruby application.
- gedit + plugins
Pros- Lightweight.
- Plugins.
- Free.
- No SVN integration.
- No Code Completion.
- jEdit
Pros- SVN integration.
- Code Completion.
- Plugins.
- Free.
- Not user friendly.
- IntelliJ IDEA 6.0
Pros- SVN integration.
- Code Completion.
- Debugging.
- Unit Testing.
- Plugins.
- Much more…
- $249.
- Komodo IDE 4.1
Pros- SVN integration.
- Code Completion.
- Debugging.
- Built specifically for Ruby on Rails.
- Much more…
- $295
- Mondrian Ruby IDE
Pros- Lightweight.
- Free.
- No SVN integration.
- No Code Completion.
- Performance could be an issue b/c it’s a native Ruby application.
- Spam in support forum.
- NetBeans Beta 6.0 Milestone 10+
Pros- SVN integration.
- Code Completion.
- Debugging.
- Plugins.
- Free.
- Much more…
- Beta.
- Ruby IDE from CodeGear
Pros- CodeGear experience.
- Feature set not yet released.
I’ll be evaluating each of the IDEs/editors in turn and publishing my results as a series. Feel free to leave feedback and check back soon!
- Meta 2 comments, permalink, rss, atom

