Ruby on Rails Installation on Windows 7

  • Next is to set the system environment variable. Quickest way: Open the control panel, search for 'environment', then click 'edit the system environment variables', and add the bin(c:\Ruby 187\bin) after a semicolon to the 'Path' variable.
        


    • Now type ruby -v in cmd prompt, you could see the ruby version installed.
    • Our next aim is to install Rails. use gem install rails --include-dependencies. Check your rails version too rails -v. You could see the latest rails version installed.
    • Installing Rmagick and ImageMagick. Download the rmagick-win32 package (zip file). Install the gem by going into the directory it’s extracted into and then executing this: gem install rmagick-2.10.0-x86-mswin32.gem
    • Then install ImageMagick itself, with the .exe that you just extracted as well.

    Getting started with a sample application(in rails 3.0):
    1. Generate a rails skeleton: rails new testapp
    2. You’ll see Rails creating plenty of directories and files now. After it’s done, do this:
      cd testapp
      
    3. To start the rails 3.0 server use: rails server

    Comments

    1. Hey..this is indeed a very useful and good initiative..Thanks yaar..It helped me a lot..:)

      ReplyDelete
    2. This comment has been removed by the author.

      ReplyDelete
    3. comment eyuthan kash kitunundenu ketu ??

      ReplyDelete

    Post a Comment

    Popular posts from this blog

    How to SSH to remote server without entering password each time.

    How to redirect a URL in NGINX