Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

第 16 章 Ruby on Rails

目录

16.1. Getting Started
16.2. Creating a New Rails Project
16.2.1. Creating the Blog Application
16.2.2. Configuring a Database
16.2.2.1. Creating the Database
16.2.3. Hello world
16.2.4. Starting up the Web Server
16.2.5. Setting the Application Home Page
16.2.6. FAQ
16.3. capistrano

16.1. Getting Started

$ sudo apt-get install ruby1.9.1
$ sudo ln -s /usr/bin/ruby1.9.1 /usr/bin/ruby

$ sudo apt-get install libopenssl-ruby1.9.1
	

$ sudo apt-get install rubygems1.9.1
$ sudo ln -s /usr/bin/gem1.9.1 /usr/bin/gem
	

Installing Rails

$ sudo apt-get install rails
	

or

$ sudo gem install rails

Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.5
Successfully installed activerecord-2.3.5
Successfully installed rack-1.0.1
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.5...
Installing ri documentation for activerecord-2.3.5...
Installing ri documentation for rack-1.0.1...
Installing ri documentation for actionpack-2.3.5...
Installing ri documentation for actionmailer-2.3.5...
Installing ri documentation for activeresource-2.3.5...
Installing ri documentation for rails-2.3.5...
Updating class cache with 0 classes...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.5...
Installing RDoc documentation for activerecord-2.3.5...
Installing RDoc documentation for rack-1.0.1...
Installing RDoc documentation for actionpack-2.3.5...
Installing RDoc documentation for actionmailer-2.3.5...
Installing RDoc documentation for activeresource-2.3.5...
Installing RDoc documentation for rails-2.3.5...