You are on page 1of 25

Ruby on Rails

zhangmengzhi2005@126.com


Ruby on Rails
Ruby
Rails
RoR
Blog

Ruby on Rails
Ruby

on Rails Ruby Web


, ROR


Ruby on Rails
Ruby
Rails
RoR
Blog

Ruby
Ruby

(Matz)
, 15 . ,
perl , python
. ,
Ruby.1994

Ruby

(Linux,Unix,Windows,MacOX,BeOS)




/

Ruby






(mix-in)

Ruby

Ruby

perl ,python
,smalltalk
LISP Java

Ruby
number

= Math.abs(-16) //Java
Number=-16.abs //Ruby


Ruby on Rails
Ruby
Rails
RoR
Blog

Rails
Rails

Ruby Web

2004 7
37Signal Ruby
Web .

Rails
Dont

Repeat Yourself
Convention Over Configuration

Rails

,
Java
Ajax

Rails
ActiveRecord
Active

Pack
Active Mail

ORM
View Controller
Email

Rails MVC

Rails
/
app/
bin/
config/
config.ru
db/
Gemfile,
Gemfile.lock
lib/
log/
public/
Rakefile
README.rdoc
test/
tmp/
vendor/

rails

Rack

gem Bundler gem

Rails
lib/tasks

PID
gem

Rails
HTTP

GET

/photos

photos#index

GET

/photos/new

photos#new

POST

/photos

photos#create

GET

/photos/:id

photos#show

GET

/photos/:id/edit

photos#edit

PATCH/PUT

/photos/:id

photos#update

DELETE

/photos/:id

photos#destroy

Rails

Rails


Ruby on Rails
Ruby
Rails
RoR
Blog

RoR

RoR

RoR
www.javaeye.com

www.iteye.com/

Javaeye
.

Ruby 60 6000
html 15000 400
40

Javaeye
HP

DL145 G1 AMD Operton 2GHz


CPU 4G DDR RAM 73G SCSI 15k Disk
Linux Kernel-2.6.7 lighttpd-1.4.13 MySQL5.0 ruby-1.8.4(GC patch)
12 12 1
3


Ruby on Rails
Ruby
Rails
RoR
Blog

Blog
RoR Blog
SQLite MySQL
Aptana Studio 3