1. Installing ruby
http://rubyforge.org/frs/download.php/71078/rubyinstaller-1.9.1-p378.exe
2. Installing rails
C:\Users\amir>gem install rails
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.8
Successfully installed activerecord-2.3.8
Successfully installed rack-1.1.0
Successfully installed actionpack-2.3.8
Successfully installed actionmailer-2.3.8
Successfully installed activeresource-2.3.8
Successfully installed rails-2.3.8
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.8...
Installing ri documentation for activerecord-2.3.8...
Installing ri documentation for rack-1.1.0...
Installing ri documentation for actionpack-2.3.8...
Installing ri documentation for actionmailer-2.3.8...
Installing ri documentation for activeresource-2.3.8...
Installing ri documentation for rails-2.3.8...
Updating class cache with 0 classes...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.8...
Installing RDoc documentation for activerecord-2.3.8...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for actionpack-2.3.8...
Installing RDoc documentation for actionmailer-2.3.8...
Installing RDoc documentation for activeresource-2.3.8...
Installing RDoc documentation for rails-2.3.8...
3. Installing SQLite3
First you will need to download two files from the Sqlite web site http://www.sqlite.org/download.html:
- http://www.sqlite.org/sqlite-3_6_23_1.zip
- http://www.sqlite.org/sqlitedll-3_6_23_1.zip
The first file is the Sqlite command line program used for modifing the Sqlite database. You may or may not use this.
The second file is the Windows DLL library file and Ruby uses this when Rails makes Sqlite database calls.
When both these ZIP files have been extracted you should have the following files:
- sqlite3.exe
- sqlite3.def
- sqlite3.dll
gem install sqlite3-ruby
4. create a project
rails test
cd test
ruby script/server
Now you test page running on http://127.0.0.1:3000
Yeah
No comments:
Post a Comment