rails girls session - web application

Post on 26-May-2015

169 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Web application

蒋帆,杨朕

VS

Browser is the whole world

URL-- Uniform resource locator 统一资源定位符

www.baidu.com

61.1

35.1

69.1

25

域名/URL IP地址

www.baidu.com 61.135.169.125

www.taobao.com 121.18.239.151

www.sina.com 202.108.33.60

DNS server -- 域名解析服务器

User A User B User C

Where Magic Happens

Http request

Http response

Controller

View Model Database

What are Browsers doing?

Rails GirlsClick Search

Ruby Store

客户需求

不再依靠淘宝,你能在三分钟内搭好自己的ruby网店框架吗?

Rails

A tool / framework helps us to build web applicationFast and Easily

Open a store开店准备

● www.Ruby.com○ domain 域名○ Host server 主机

Open a store开店准备

● Model : Ruby○ Name 名字○ Weight 重量○ Type 种类

Open a store开店准备

● Controller for Ruby○ list all 商品目录○ see details

展示细节

Open a store开店准备

● View for Ruby○ Description 描述文字○ Pictures

图片

Open a store置办设施

● Rails 一个好的框架让你轻松成为你自己的施工团队

Open a store置办设施

● Magic in Rails ○ scaffold○ routes○ ActiveRecord

Open a store置办设施

● Magic in Rails ○ scaffold脚手架,为你搭建一个完整的MVC外壳

○ routes路由,为你引导不同种类的请求

Open a store置办设施

● Magic in Rails ○ ActiveRecordCRUD不再为数据库烦恼

Open a store临门一脚

不再依靠淘宝,你能在三分钟内搭好自己的ruby网店框架吗?

Question ?提问时间

top related