Quick notes on how to install Ruby on Rails under Windows
- Open http://rubyforge.iasi.roedu.net/files/rubyinstaller/ruby186-26.exe or any later version if applicable
- Install to c:ruby
- Windows -> Start -> Run -> cmd to get the dos prompt
- Type PATH to ensure that it has c:rubybin; if not fix this manually via Windows control panel settings.
- Download http://rubyforge.rubyuser.de/rubygems/rubygems-1.1.1.zip
- Unzip to c:rubygems
- cd rubygems
- ruby setup.rb (this installs executable gem at c:rubybingem)
- delete rubygems folder
- gem update –system (this is to update rubygems – not needed here now)
- gem update (this is to update installed gems – not needed here now)
- gem install rails –include-dependencies
- MySQL – download mysql and install it, there are many ways (xampp etc)
- DownLoad MySQL Admin tool and connect to your MySQL
http://mysql.orst.edu/Downloads/MySQLGUITools/mysql-gui-tools-5.0-r12-win32.msi - Create a table called users
id auto_inc
name varchar 50
age int 3 - Make a folder say c:ror
- cd ror
- rails my_first_app -d mysql
- cd my_first_app
- ruby scriptserver
- start browser and point to http://localhost:3000
- Scaffolding a table
- ruby scriptgenerate scaffold user name:string age:integer
- Edit configdatabase.yml
- ruby scriptserver
- start browser and point to http://localhost:3000/users



