Read "Open Source Base Camp" to see this section. Just give it a try.
First, go to the Internet to down the installation files to be used, as shown below:
Http://rubyforge.org/frs/download.php/12751/ruby185-21.exe
Http://rubyforge.org/frs/download.php/16559/rails-1.2.1.gem
Http://rubyforge.org/frs/download.php/16561/rails-1.2.1.zip
Http://rubyforge.org/frs/download.php/16507/activesupport-1.4.0.gem
Http://rubyforge.org/frs/download.php/16509/activesupport-1.4.0.zip
Http://rubyforge.org/frs/download.php/16547/activerecord-1.15.1.gem
Http://rubyforge.org/frs/download.php/16549/activerecord-1.15.1.zip
Http://rubyforge.org/frs/download.php/16550/actionpack-1.13.1.gem
Http://rubyforge.org/frs/download.php/16552/actionpack-1.13.1.zip
Http://rubyforge.org/frs/download.php/16553/actionmailer-1.3.1.gem
Http://rubyforge.org/frs/download.php/16555/actionmailer-1.3.1.zip
Http://rubyforge.org/frs/download.php/16556/actionwebservice-1.2.1.gem
Http://rubyforge.org/frs/download.php/16558/actionwebservice-1.2.1.zip
Step 2: Start Installation
First install ruby1.85, and then enter the CMD Mode
C:/downloads> gem install activesupport
C:/downloads> gem install activerecord
C:/downloads> gem install actionpack
C:/downloads> gem install actionmailer
C:/downloads> gem install actionwebservice
C:/downloads> gem install rails
In this way, the installation is complete.
Then, based on the example in the book, create a database, generate the addressbook application, and run rails
Ruby script/Server-d
Not running, as shown below:
C:/Ruby/lib/Ruby/1.8/yaml. RB: 133: In 'load': syntax error on line 18, Col 2: 'H
OST: localhost' (argumenterror)
Baidu: a problem occurred in the database configuration file config/database. yml.
Development:
Adapter: MySQL
Database: addressbook
Username: Root
Password: micronsky.net
HOST: localhost
: There is a space behind it.
Modify it and run it again:
C:/Ruby/lib/Ruby/1.8/webrick/server. RB: 29: In 'fork': the fork () function is unim
Plemented on this machine (notimplementederror)
I searched for another half a day and couldn't find the reason. I thought it wouldn't be a problem with the-D parameter. So I removed it and ran it. OK!
It's really good, but I have no time to study it. Let's take a look at it.