Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

第 20 章 Ruby on Rails

目錄

20.1. Getting Started
20.2. Creating a New Rails Project
20.2.1. Creating the Blog Application
20.2.2. Configuring a Database
20.2.2.1. Creating the Database
20.2.3. Hello world
20.2.4. Starting up the Web Server
20.2.5. Setting the Application Home Page
20.2.6. FAQ
20.3. capistrano

20.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...