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 rubyinstaller.org. 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
installrails
Install all of Rails and its dependencies using the following command through the command line −C:\> gem
installrails
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
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.
demo project.
C:\> rails new demo
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
Now open your browser and type the following –
http://localhost:3000
It should display a message, something like, "Welcome aboard" or "Congratulations".
RUBY ON RAILS CUSTOM WEB APPLICATION SERVICES
ReplyDeleteThe tutorial is very helpful for a first timer like me, by the way if you could have given a
ReplyDeletetutorial on creating a free blog, it would have been very helpful for newbies like me.
click for info