Check out the Latest Articles:

Sorry for the lack of posts lately. I had the misfortune of having my car broken into and, amongst other things, my laptop was stolen. Hopefully I will be able to replace it soon and get back to bringing you quality tutorials so you can SuckLessAtRails.

Creative Commons License photo credit: optimal tweezers

Ruby on Rails Installation Tutorial Part 2 – Installing Rails 2.0 on Windows (Advanced Setup)

In part 1 of this series we showed you the Easy way of setting up a Rails 2.0 development environment using InstantRails. Today we are going to cover a more advanced way of setting up a Rails 2.0 development environment on your Window machine.

Ruby on Rails on Windows the Advanced Way

Installing Ruby and Gems

Head over to the download page on rubyonrails.org and grab the newest stable version of the Windows installer (At present 1.8.6-26).

Once this downloads go a head and run the installer using all the defaults. This puts ruby in C:\ and installs ruby gems. This may take some time depending on your machine.

installer

Once this finishes we need to update gem. To do this open up a command prompt (Start -> Run -> cmd) and type:

gem update –system

updatesystem

Installing Rails

Once gem is updated we can start installing the other components of the environment. We will start with Rails. In the same command prompt we just used type:

gem install rails

installrails

This takes some time and at times looks like it might have frozen up, but it hasn’t. It just takes a little bit. Go grab a drink with all this free time.

Installing A Database

Once you’re done with your drink and rails has installed its time to install a database. There are two simple options for this, SQLite3 and MySQL. SQLite is the default database that Rails uses. MySQL is the database that most people hear about in the web world because of its inclusion in the LAMP (Linux, Apachy, MySQL, PHP) architecture. I would recommend using SQLite for the first time user. Its easier to use since Rails defaults to use it as I mentioned before.

Installing SQLite

To install SQLite head over to www.sqlite.org and navigate to the download page and grab the latest SQLite Command Line Tool and SQLite DLL (At present both are at version 3.6.11). Unzip both and put the contents into the ruby\bin folder.

sqlitefiles

Now we can use install the sqlite3-ruby gem. Using the command prompt again type:

gem install sqlite3-ruby -v 1.2.3

sqliteinstall

Installing MySQL

To install MySQL head over to www.mysql.com and navigate to the download page and get the latest version of MySQL Community Server (Presently at 6.0, but we’ll use 5.1)

Run the installer.

mysqlsetup

Once this is done we will use the command prompt one last time to make sure we have the MySQL adapter. To do this, in the command prompt, type:

gem install mysql

mysqlgem

Congratulations you are all set up and ready to start coding some Ruby on Rails!

Creative Commons License photo credit: MissTurner

Ruby on Rails Installation Tutorial Part 1 – Installing Rails 2.0 on Windows (Easy Setup)

This is Part 1 in a series of tutorials teaching you how to set up a Rails 2.0 development environment on your machine be it a mac, Linux box or Windows machine. Today we will be covering the easy way to set up Rails 2.0 on Windows machines.
Note: This if for Rails 2.0 and on. [...]

In The Begining…

This site will be dedicated to making you better at Ruby on Rails and its many facets.
Sign up for an account, subscribe to our feed and come along with us for the ride that is sucking less at rails.
photo credit: FALHakaFalLin