Pin Me

Getting started with Ruby on Rails development on Linux and the perfect IDE

written by: Michael Dougherty•edited by: J. F. Amprimoz•updated: 7/28/2015

Ruby on Rails is an open source web application framework for the Ruby programming language. This guide will show you how to get started developing Ruby, with Ruby on Rails and the best IDE to use with a Linux operating system, such as Ubuntu.

  • slide 1 of 3

    Introduction

    Recently, I forayed into the cool world of RoR and my immediate question was, how to get started and which is the best IDE to start my RoR journey with. I found loads of options and I have decided to list them here for the benefit of others, who face the same problem. I will also detail the installation of the IDE that I am currently using, which I feel is the easiest for newbies to start with.

  • slide 2 of 3

    Laying the track

    Installing RoR is downright easy. First you need "Ruby", which comes readily built-in with most of the Linux distros. After that you need to get the Rails package which can be downloaded from the Ruby on Rails website, or from your favorite package manager - apt, Synaptic, yum etc. Just search for Ruby and Rails, and install all the packages. For instance,

    sudo apt-get install ruby

    sudo apt-get install rails

    Great! Once you have the packages installed, you can set up your first project as follows:

    rails myTestApp

    To get your server running to test your stuff, simply run WEBrick server as follows:

    cd myTestApp

    ./script/server

    With the RoR environment set up, you can browse loads of resource available online to start developing in this framework. There are some really cool screencasts at the RoR website to get you started.

  • slide 3 of 3

    Choosing an IDE

    Now the next big question. Which is the best IDE to use? All the screencasts, tutorials and books I have read, use textmate as their primary editor. Textmate is only available for Mac OS but there are some nice alternatives for Linux.

    1. Vi:

    Rails.Vim is a Rails plugin for Vim. I am not a huge fan of Vi but I know a whole lot of folks are.

    2. Gedit:

    With some nice 3rd party plugins, Gedit can be used as a really powerful editor for Rails. Read gedit for Textmate-like Gedit in a few steps.

    3.Aptana/Eclipse with RadRails:

    RadRails is an open source IDE for the Ruby on Rails framework that runs on top of eclipse. Easily the most powerful IDE available for Rails development on Linux but it can be a resource hog at times and not recommended for the casual developer.

    4. NetBeans IDE 6.1:

    My favorite editor by far when it comes to Java development. The latest version boasts of a really neat integration of RoR. Like eclipse, it does take up a lot of memory resource.

    5. Kate:

    I really like the way the console is integrated into Kate. Kate supports syntax highlighting for ruby, rhtml etc.

    6. Other Notable mentions:

    JEdit, SciTe, FreeRide, NEdit and Bluefish.

    Well, there are plenty of choices available but the selection of the best IDE rests at the user's familiarity and preference to a certain environment. Hope this article helps you get started with RoR development on Linux. Have fun coding!