I tried Ruby on Rails.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.