Wednesday, February 11, 2009

windows ruby installation tutorial in minutes

Just Follow The Steps for Windows Users

Installing GEM
Step 1.
Install ruby: ruby186-26.exe [you should have to get it from net, search google]
From command prompt

Step 2.

gem install rails --remote --include-dependencies

Step 3.
gem install rake --remote

Working with RoR with Example

to create the project framework with mysql server
rails cookbook -d mysql
to run the ruby serverruby script/server

to create ruby controller fileruby script/generate controller ControllerName

to create model fileruby script/generate model ModelName

scaffloding the projectruby script/generate scaffold Book title:string description:test

migrating the database from ruby script to mysql database serverrake db:migrate

Cool you are ready to start coding already....

No comments:

Post a Comment