Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, iphone help, ipod help, AdSense, MySpace, Sony PSP help, Mp3 players, Windows XP, Windows Vista, Linux, SEO, Mac OS X, Facebook, Twitter and LinkedIn.

How do I get started with Ruby on Rails?

I want to know in a nutshell how I can get to install and use Ruby on Rails. I have been to rubyonrails.org but the download procedure is not clear cut. I'm basically a C++ and .NET developer. I am interested to use RubyOnRails for my web apps. Please give a straightforward and clear cut way to install start developing with RubyOnRails. Thanks a lot.


Dave's Answer:

First off, I imagine that it'd be darn useful to have a definition of what "Ruby on Rails" is, in the first place, because every time I hear the phrase, I think that it must be some sort of game for my daughter. :-)

Ruby on Rails logoAccording to Wikipedia "Ruby on Rails is an open source web application framework written in Ruby that closely follows the Model View Controller (MVC) architecture. It strives for simplicity, allowing real-world applications to be developed in less code than other frameworks and with a minimum of configuration. One of Rails' guiding principles is "Don't Repeat Yourself"."

So it's a new type of programming environment that's well-suited for Internet applications, though I have heard from software developers that it's still early in its evolution and unlikely to be suitable for large scale professional software deployments.

In terms of getting started, the official place to start is the Ruby On Rails Wiki, where they have a section entitled Getting Started with Rails. Your first step is to ensure that you have the latest version of Ruby itself (Rails is an add-on to the Ruby programming language), which you can find at ruby-lang.org.

Ruby on Rails is available for a wide variety of operating systems too, ranging from Windows to Mac OS X, and a wide variety of different Linux distributions too.

In fact, my Mac OS X system (running Tiger 10.4.5) already has Ruby pre-installed at /usr/bin/ruby. Type man ruby within a Mac Terminal (Applications --> Utilities --> Terminal to launch a command line terminal as needed).

As the man page says, "If you want a language for easy object-oriented programming, or you don't like the Perl ugliness, or you do like the concept of LISP, but don't like too much parentheses, Ruby may be the language of your choice."

You also need to be running the Apache web server, which is freely available for all of the operating systems listed above too, and pre-installed with most modern Unix-based distributions, including Mac OS X. Then you'll need to configure Apache to be Rails-friendly, as detailed in How to Set Up the Base URLs of your Rails Apps.

Lots of work getting everything set up "just so", I agree with you.

Once you're ready to roll, I strongly encourage you to check out the splendid article the Curt Hibbs wrote for O'Reilly's ONLamp site, called Rolling with Ruby on Rails.

I hope that gets you going with Ruby on Rails. It's very interesting and if I were still an active programmer, I know I'd be experimenting with it too.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

Is Knowing Ruby a prequisite to use Ruby on Rails?

Posted by: Satish Talim at October 23, 2005 7:10 AM

Actually, you *can* get started with Rails without really knowing Ruby. many people have learned Ruby as they were building their first Rails web app.

The easiest way to install and get stated with Rails on OSX is to use Locomotive:

http://locomotive.sourceforge.net/

and on Windows, use Instant Rails:

http://instantrails.rubyforge.org/

Posted by: Curt Hibbs at October 23, 2005 8:29 AM

The article by Curt Hubbis was extremely useful. Thanks for your help.
Sincerely,
Naveed.

Posted by: Naveed Ahmed at October 23, 2005 6:51 PM


I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Uniblue: Free Virus Scan

Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Member of the B5Media Network

Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]