Posts Tagged Under: rails

Rails – Installing Rails on a Windows Machine

Rails (aka ruby on rails), is a collection of ruby related products.

On windows, it is possible to install Ruby, and install rails separately, however it is much more trouble-free if you install them together using the railsinstaller.

First install:

http://railsinstaller.org/en

You might also need to add the following variables to the path variable:

C:\RailsInstaller\Ruby2.1.0
C:\RailsInstaller\Ruby2.1.0\bin    

Note, the ruby version numbwers could be slightly different, so first locate your bin directory and ensures that it exists before adding it tot the path variable.

This bin, directory above has a number of essential ruby/rails command line utilities.

Now open up a powershell terminal and check what version of the tools we have installed:

PS C:\Temp\rails> ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
PS C:\Temp\rails>															

Rails – Create a new rails project

To create a new rails project on a windows machine, you need to take the following steps:

1. start powershell terminal

2. create a folder that will house all your rails project

PS C:\> mkdir RailsProjects


    Directory: C:\


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        13/12/2014     15:57            RailsProjects

PS C:\>

3. cd into that directory

PS C:\> cd .\RailsProjects
PS C:\RailsProjects>

4. Next we have to set up this folder as our main folder that