views:

71

answers:

4

How do i install Ruby on Rails in my PC ....can someone please let me know the files to be downloaded and installation procedures.

+2  A: 

Downloads and instructions for Windows and OS X are available here.

Brian
+4  A: 

Go to this page and follow the instructions

http://rubyonrails.org/download

NullUserException
A: 
  1. Download RubyInstaller 1.8.7 from here. During the installation, check the 'Add Ruby executables to your PATH' box. After the installation, don't forget to restart cmd. Try ruby -v and gem -v to check for installed Ruby and RubyGems and ensure they are work;
  2. Install the latest stable Rails release: gem install rails and check it using rails -v;
  3. Create a new application using rails myapp;
  4. cd myapp, run script/server, and develop, develop, develop.
floatless
I did not follow Step 3 and Step 4 .....do we just need to give rail application name ???? and how to run script/server
Sanjai Palliyil
Yeah, you need to assign some name to your Rails application. You can find more information regarding the `rails` command line utility using `rails --help`. `rails` in Rails 3 will show `rails new APP_PATH [options]`, so you should launch it like `rails new hello_world_app`.
floatless
Ok i have created a sample application. how do i view it in browser...sorry for my ignorance....just started with this.......
Sanjai Palliyil
Change your working directory `cd your_app_name`, type `script/server`, wait a little bit (Ruby and Rails are slow on Windows), and point your browser to `localhost:3000`.
floatless
When i started the server i got the error message, Could not find gem mysql2 in any of the gem sources...!!!!
Sanjai Palliyil
You should try to install it using `gem install mysql2` or replace it in your Gemfile to `mysql`, then `bundle install` and try to run the server again.
floatless
I have created a sample Ruby Application. Now i would like to connect to a database and start working on it. Somebody please help me on the steps to follow.
Sanjai Palliyil
A: 

Hi Sanjai Palliyil

Try these

Installing ruby - http://digit.lk/ruby_february2009 Installing rails - http://digit.lk/09_april_ruby

cheers

sameera

sameera207