Wednesday, February 3, 2016

Ruby On Rails Installation ( Windows)

    Rails Installation on Windows
      Follow the steps given below for installing Ruby on Rails.
    Step 1: Check Ruby Version
     First, check if you already have Ruby installed. Open the command prompt and type ruby -v. If Ruby responds, and  ifit shows a version number at or above 2.2.2, then type gem --version. If you don't get an error, skip Install Ruby  step. Otherwise, we'll install a fresh Ruby.
    Step 2: Install Ruby
If  Ruby is not installed, then download an installation package from Follow the download link, and run the resulting installer. This is an exe file rubyinstaller-2.2.2.x.exe and will be installed in a single click.
    Step 3: Install Rails 
    Install all of Rails and its dependencies using the following command through the command line −C:\> gem
C:\Users\BHASKAR\Desktop\2016-02-02 15_17_35-Ruby on Rails Installation - Internet Explorer.png
    Step 4: Check Rails Version
    Use the following command to check the rails version.
    C :\> rails –v
    Step 5: Check whether Rails is Up-to-Date
      Assuming you have installed Rails using RubyGems, keeping it up-to-date is relatively easy. Use the following command −
    C:\> gem update rails
C:\Users\BHASKAR\Desktop\2016-02-02 15_20_49-Ruby on Rails Installation - Internet Explorer.png

    Step 6: Verify Installation
     You can verify if everything is set up according to your requirements or not. Use the following command to create a 
     demo project.
     C:\> rails new demo
C:\Users\BHASKAR\Desktop\2016-02-02 15_22_51-Ruby on Rails Installation - Internet Explorer.png
         It  will generate a demo rail project; we will discuss about it later. Currently we have to check if the environment is set   up    or not.
         C:\> cd demo C:\apache-ant-1.9.6
         C:\demo> rails server
         It will generate auto-code to start the server
Rails Server

        Now open your browser and type the following –
It     should display a message, something like, "Welcome aboard" or "Congratulations".
Z:\Ruby on Rails Installation\rails_welcome.jpg

No comments:

Post a Comment