Thursday, March 20, 2008

How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin


1.Goto rubyforge.org/projects/instantrails and click on the download link.

2.Right-click on the InstantRails-2.0-win.zip link and save the .zip file to a local directory.
3.Wait until it is downloaded which could take a couple minutes.

We are going to need a zip program for our installation as well as doing backups, etc. during development, so we will install the free 7zip program now.

4.Goto www.7-zip.org and click on the download link for the 32-bit .exe.
5.Click on Save File .
6.Double-click on the file that you downloaded.
7.Click on the Install button.
8.Click on finish.

Now that the Instant Rails zip file is on our hard drive and we have a zip program, we are going to unzip and install Instant Rails

9.Right-click on the zip file and unzip it.
10.Type in c:\instantRails and click OK .
11.Wait a couple minutes for it to unzip.
12.Hold down the CTRL-SHIFT keys and drag the InstantRails.exe icon down to your tool bar so you can start it easily.
13.When it informs you that the configuration files moved, click OK .
14.Click Unblock so that the XP firewall allows Apache to work.
15.Click on the "I" icon and select Rails Applications and then Manage Rails Applications....
16.Check Cookbook and click Configure Startup Mode... .
17.Note the port number and click Cancel .
18.Click Start with Mongrel .
19.Click Unblock .
20.In your browser, enter http://localhost:3001 where 3001 is the port number you noted above. You will see the Online Cookbook application which means that Instant Rails is installed and working.

To run our edit JEdit which we will install in the next step, we first need Java so we will download and install it now.

21.Goto developers.sun.com/downloads.
22.Click on the Java SE (JDK) 6 link.
23.Click on the Download button for JDK 6u1.
24.Click Accept and Click on Windows Offline Installation, Multi-language.
25.Click OK to save it to disk.
26.Save it to C:\download\java6.
27.After it has finished downloading, you will have this file in your directory.
28.Double click on file that was downloaded.
29.Accept agreement.
30.Click Next and it will install for about 8 minutes.
31.Unclick the Show the readme file checkbox and click Finish .
32.

No comments: