Installing RoR is downright easy. You first 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 either 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
Great, with the RoR environment set up, you can browse the 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.
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.
Biodegradable Geek has a really nice post about Rails.Vim, a Rails plugin for Vim. I am not a huge fan of Vi but I know a whole lot of folks are.
With some nice 3rd party plugins, Gedit can be used as a really powerful editor for Rails. Read here for Textmate-like Gedit in 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 developers.
4. NetBeans IDE 6.1:
The latest version boasts of a really neat integration of RoR. Like eclipse, it does take up a lot of memory resource.
My favorite editor by far when it comes to C/C++/Java development back in days when I had programming projects in the varsity. 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. Click here for the full list
7. My Pick! - Komodo Edit:
Komodo edit is an open source code editor based on the commercial Komodo IDE. It's an excellent alternative for Textmate and includes the project drawer, and (some) auto completion.
As promised, let's see how to get it installed on linux.
1. Download Komodo Edit from the ActiveState website.
2. Extract the package
$ tar xvf Komodo-Edit-4.3.2-1263-linux-libcpp6-x86.tar.gz
3.Install Komodo Edit ( I installed it in /usr/local)
$ cd Komodo-Edit-4.3.2-1263-linux-libcpp6-x86/
$ sudo ./install.sh
4. Create a soft link in /usr/local/bin
$ sudo ln -s "/usr/local/Komodo/bin/komodo" /usr/local/bin/komodo
5. Finally, run Komodo
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!!