Wednesday, June 1, 2011

Starting Rails Development In Windows

After having spent a couple of days on learning rails development on a Ubuntu vmware OS, i decided to give a try on windows also. Just because i was running Ubuntu vmware OS on windows, the ubuntu was not that responsive for speeding up my development. So i thought of trying my hands on rails development setup in my windows box itself.
For my surprise, things went very smooth because of the latest tools and installers available for windows rails development. Let us see what i installed and what I IDE i installed for rails development. 


Go to this website and download the install kit
http://railsinstaller.org/
This installer will install Ruby, Rails and Git in your machine.
Git is a version control system that is getting more popular in the Rails community as well as in the open source community. Follow the video in the above webpage to create a simple rails applicaton.


You can verify whether the installer successfully installed ruby, rails and git by typing in the following commands in your command line.
ruby -v 
rails -v
git
These commands will provide some meaningful output in the command window.
You can start using a text editor and rails commands to start creating an application.
But i decided to try out the free IDE available (Aptana Studio) for rails development.
Just download the standalone version of the aptana studio for windows from the following location
http://www.aptana.com/products/studio3/download

The aptana studio just works out of box once installed. You can create a rails project using File-> New Rails project and you are set to launch your application by starting :"Run Server" command.


The ruby installer mentioned above doesnt contain mysql. So you might have to install mysql separately. If you install mysql in windows, it might be running as a service. I had installed mysql sometime back. But i had trouble logging into the mysql server. This might be because i was not sure about the password for the 'root' user. You can reset the password for the user 'root' by following steps in the following link.
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

No comments:

Post a Comment