So you want to give Rails a whack but don’t have a clue where to start? Well you have come to the right place!
First things first, go grab Ruby Here. I got the 1.9.2-p180 version and would suggest you get the same to avoid issues with following along with me. Install and make sure that you select “Add Ruby executables to your PATH” and “Associate .rb and .rbw files with this Ruby installation” as shown below.
So with Ruby installed open up a CMD prompt and run “gem update –system”
With that done go ahead and run
“gem update”
and then you should be golden to install Rails.
Run “gem install rails”
This should take a few seconds/minutes so go to the bathroom, go drink something, or upgrade your internet ![]()
After Rails is installed you should install some sort of database. The default one Rails uses is SQLite3 but the catch is that it does not ship with Rails 3
So let’s go ahead and get that sucker installed
Run “gem install sqlite3-ruby”
Note that after you install the SQLite3 gem there will be instructions on where you should get the sqlite3.dll version that works with your version of the sqlite3-ruby gem. Or download the version I used http://www.sqlite.org/sqlitedll-3_7_3.zip.
So go ahead and download sqlite3.dll and make sure you place it in your ruby/bin folder. Hopefully you won’t get any problems with SQLite3, if you do please don’t hesitate to ask away in the comments below and I’ll help where I can!
It’s time to create your first ever Rails app! How exciting!! So what are you waiting for? Create a folder wherever you want and go to that folder in the cmd. Example C:/myfolder
so in CMD prompt type
1) “cd\”
2) “mkdir myfolder”
3) “cd myfolder”
4) “rails new myapp”
Watch as the magic happens right before your virgin rails eyes ![]()
BTW myapp can be anything you want, it’s your choice!
Oky the hardest parts are over I promise! The last step is to run “rake db:migrate”, this will create the sqlite database for your modding pleasure later!
So the moment of truth has arrived! It’s time to take flight little hatchling, so go ahead and unleash the power that is Ruby on Rails!
Run “rails server” and if everything goes to plan you should see WEBrick fire up
Awesome! Now start-up your browser and go to localhost:3000, you should be greeted with the default Rails welcome page!
When you click the about link you should see info about your Rails stack, WELL DONE!!
Please tweet this post and don’t forget to subscribe at the top of the page, thanks! ![]()
Next time I’ll show you how to take your site to the World Wide Web and unleash it in CyberSpace!
Rhinorumbles.com




