SlideShare una empresa de Scribd logo
1 de 31
Descargar para leer sin conexión
Working with Rails
       Web development that doesn’t hurt!
                      Skype: Caiwangqin
                              July, 2007
About Caiwangqin
    蔡望勤,湖北黄冈人。
}

    1997年开始接触计算机,对计算机编程情有独钟。曾在广州为赛百威
}
    (Cyberway)、宝洁(P&G)工作,而后为国际知名企业做人力资源管
    理系统(HRMS),如伟创力(Flextronics)、安美特(AutoTec)、欧科
    (EuroTec)、东风汽车乘用车等,系统持续运行至今。
    2005年底加入南京UUZone,开始专注于研究Ruby on Rails和Web2.0领
}
    域。
    现任亚艺网媒科技有限公司技术总监。
}
Presentation Agenda
    Real Word Rails
}
    Brief overview of Ruby
}
    Brief overview of Rails
}
    Description of Rails framework
}
    Demo
}
    Questions and Answers
}
        Ask questions at any time
    }
Real World Rails
Real World Rails
Real World Rails
Real World Rails
Real World Rails
More Real World Rails

    http://happycodr.com/
}
        Ruby on Rails Showcase
    }

    http://railscn.memebot.com/demobox/popular.htm
}
        Ruby on Rails in Chinese sites
    }

    http://wiki.rubyonrails.org/rails/pages/RealWorldUsage
}
        Real companies with real applications running Rails
    }
What is Ruby?
    Object-Oriented scripting language
}
    Conceptual similarities to Smalltalk
}
    Many system and text manipulation features like Perl
}
    Emphasis on simplicity and design elegance
}
What is Ruby on Rails? Just a joke…
So, What is Rails?

Rails is a Framework, only a MVC Web Application
 Framework written in Ruby.
 Some constraints make it easier to create applications.
 } ActiveRecord API
 } ActionController API
 } Templating Engine
 } Scripts and lots of other stuff…
DRY-Don’t repeat yourself

    Plugins
}
Rails Directory Structure
    Execute Rails my_app command
}

    Directory:
}

        my_app/
    }
            app/               #view controller model 都存放在该目录中
        }
            components/        #存放一些可重用的组件
        }
            config/            #配置信息,数据库的连接参数
        }
            db/                #schema 信息
        }
            doc/               #自动生成文档
        }
            lib/               #共享的代码
        }
            log/               #
        }
            public/            #一些公共的web资源
        }
            Rakefile
        }
            script/            #很多的脚本
        }
            test/              #单元测试,功能测试等
        }
            vendor/            #第三方代码
        }
How Rails Works
How Rails Works
Get Started
  Install Ruby , RubyGems
}
http://www.rubyonrails.org/down
} Install Rails
gem install rails --include-dependencies
} Make Rails Application
rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server
} Visit Rails
http://127.0.0.1:3000
Demo
    Start…
}
Deploy Rails
    Webrick
}
    Apache(lighttpd) + CGI
}
    Apache+FastCGI
}
    Lighttpd + FastCGI
}
    Apache(lighttpd)+SCGI
}
Web 2.0 and Rails
    Fast time-to-market
}
    Tight integration with AJAX libraries
}
    New emphasis on focused, interoperable applications
}
    Less time coding infrastructure means more emphasis
}
    on clean design and elegance in all aspects of the
    application
Why Ruby on Rails


                  Because it's fun!

    Programming should be a fun and creative experience.
}
Why not Ruby on Rails



    handle existing databases
}
    huge application
}
    developers without passion
}
Railser in china
Railser in china
    2006感动铁道中国十大杰出青年
}
        Fikko
    }
            飞戈 首创中文最大的RoR论坛 Railscn, 原创Rails的作品有顶啊网, 易做网等 个人blog http://www.fikko.net/ 在上海, 经常
        }
            因工作忙潜水,偶尔换气

        道喜
    }
            cnruby gudao.luo at gmail 点com 其个人blog 道喜技术日记 包含丰富的内容, 各种工具的使用技巧, Rails框架技术讲座论坛,
        }
            讲解细致步骤清楚, 图文并茂, 也可以下载实例代码 http://www.hhtong.com/blog1/ 骆先生身在德国慕尼黑, 现在筹划中文
            Rails和Ruby的电子杂志

        徐家涛
    }
            Apemanchen 北京人 dochance的站长, 组织多次Rails北京活动, 免费为Rails的爱好者学习者赠送他个人购买的dreamhost空
        }
            间, 19人因此受惠, 现正计划更大规模的一日活动Hackathon http://www.dochance.com/

        范凯
    }
            Robbin 在Java精英中独具慧眼的识宝者, 在程序员杂志和其影响的网站上介绍红宝石和铁道, 并付诸实践改造了原来的Java视野
        }
            , 实施了民主化的试验并不断推进技术影响力的进程, 打造blog和bbs与其它新元素的交流统一环境

        透明
    }
            Jeff 熊节 gigix 最早也是Java名人向Ruby和Rails投橄榄枝的, 并编审了国内第一本Rails的翻译书, 敏捷开发的布道者, 推广
        }
            Rails的同时推广ThoughtWorks的产品和理念 与Apemanchen共同组织Beijing 爱好者的活动
Railser in china
    2006感动铁道中国十大杰出青年
}
        考拉
    }
            最早中文教程的作者,下载最大影响最大的“Ruby on Rails 实践“在各大网站都有下载, http://railscn.com/viewtopic.php?t=8 Railscn的
        }
            下载量惊人, 今年考拉工作室又推出原创的音乐评论乐道网 http://www.likenote.com/ http://koalant.javaeye.com

        Cookoo
    }
            Railscn 和 JavaEye 两大R and R 社区的积极参与者,发表许多精华文章,这位在国际共产主义战士白求恩的故乡加拿大工作的上海籍青年,
        }
            在本年度的程序员杂志上发表专文介绍Rails开发的工具和技巧,并建立了Gtalk的即时聊天群落,不仅两岸三地的汉语Rails和Ruby交流,世界
            各地中英文的爱好者都可以上去讨论技术及时解决问题,他还对财务和商业管理和猪宝宝感兴趣 chinaonrails at gmail 即时讨论组上可以快速
            找到银昊,blog: cookoo.javaeye.com

        松鼠
    }
            柳靖 东北大连人, 研究生在读, 写出以个人实践为内容的第一本原创RoR中文书 http://www.railscn.com/about1942.html 柳同学对待比较
        }
            其它语言和框架及技术选型上非常平和豁达, 不希望过多的精力投入到论战当中

        Qiezi
    }
            茄子代表快乐的笑口常开, 是热心帮助人的技术高手,不论问题有多难或者多简单,都不厌其烦地细致解答, 而且对于连问题都没有问全的不完
        }
            整性垃圾题也能谆谆诱导为之解惑 http://qiezi.javaeye.com/

        Caiwangqin
    }
            Jesse Cai 蔡望勤 Focus on web2.0, mashup类型的程序,酷不酷, Beast绑OpenId,Rails中文书写平台还有 ChinaonRails的Rforum
        }
            论坛都是他的部署,他还是Railscn的技术版版主, 上半年组织了周二9点的聚会活动 http://caiwangqin.com
Books
Questions?




         Questions and Comments
In Conclusion…
    Thank you
}
    Resources
}
        Rails has a large enthusiastic community at rubyonrails.org
    }
        Ruby on Rails Chinese community at chinaonrails.com
    }
        I blog regularly about Rails and web 2.0 topics at
    }
        http://www.caiwangqin.com
        I love getting email…
    }
        jesse.cai@gmail.com

Más contenido relacionado

Similar a Working With Rails

Web技術勉強会 第19回
Web技術勉強会 第19回Web技術勉強会 第19回
Web技術勉強会 第19回龍一 田中
 
Ruby on Rails 2.1 What's New Chinese Version
Ruby on Rails 2.1 What's New Chinese VersionRuby on Rails 2.1 What's New Chinese Version
Ruby on Rails 2.1 What's New Chinese VersionLibin Pan
 
20090418 イケテルRails勉強会 第1部Rails編
20090418 イケテルRails勉強会 第1部Rails編20090418 イケテルRails勉強会 第1部Rails編
20090418 イケテルRails勉強会 第1部Rails編mochiko AsTech
 
Gorm @ gopher china
Gorm @ gopher chinaGorm @ gopher china
Gorm @ gopher chinaJinzhu
 
Understanding Web Services
Understanding Web ServicesUnderstanding Web Services
Understanding Web Servicesaru85
 
Understanding Web Services
Understanding Web ServicesUnderstanding Web Services
Understanding Web Servicesaru85
 
Rails Cache
Rails CacheRails Cache
Rails Cachewear
 
090309seminar talk about Cloud Computing
090309seminar talk about Cloud Computing090309seminar talk about Cloud Computing
090309seminar talk about Cloud ComputingKohei Nishikawa
 
20090323 Phpstudy
20090323 Phpstudy20090323 Phpstudy
20090323 PhpstudyYusuke Ando
 
1242626441API2 upload
1242626441API2 upload1242626441API2 upload
1242626441API2 upload51 lecture
 
【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...
【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...
【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...devsumi2009
 
yusukebe in Yokohama.pm 090909
yusukebe in Yokohama.pm 090909yusukebe in Yokohama.pm 090909
yusukebe in Yokohama.pm 090909Yusuke Wada
 
Rails Deployment with NginX
Rails Deployment with NginXRails Deployment with NginX
Rails Deployment with NginXStoyan Zhekov
 
UAI seminor at nagoya 20080515
UAI seminor at nagoya 20080515UAI seminor at nagoya 20080515
UAI seminor at nagoya 20080515Masahiro Umegaki
 
온톨로지 개념 및 표현언어
온톨로지 개념 및 표현언어온톨로지 개념 및 표현언어
온톨로지 개념 및 표현언어Dongbum Kim
 
Five Minutes Introduction For Rails
Five Minutes Introduction For RailsFive Minutes Introduction For Rails
Five Minutes Introduction For RailsKoichi ITO
 

Similar a Working With Rails (20)

Web技術勉強会 第19回
Web技術勉強会 第19回Web技術勉強会 第19回
Web技術勉強会 第19回
 
Ruby on Rails 2.1 What's New Chinese Version
Ruby on Rails 2.1 What's New Chinese VersionRuby on Rails 2.1 What's New Chinese Version
Ruby on Rails 2.1 What's New Chinese Version
 
20090418 イケテルRails勉強会 第1部Rails編
20090418 イケテルRails勉強会 第1部Rails編20090418 イケテルRails勉強会 第1部Rails編
20090418 イケテルRails勉強会 第1部Rails編
 
Gorm @ gopher china
Gorm @ gopher chinaGorm @ gopher china
Gorm @ gopher china
 
Understanding Web Services
Understanding Web ServicesUnderstanding Web Services
Understanding Web Services
 
Understanding Web Services
Understanding Web ServicesUnderstanding Web Services
Understanding Web Services
 
Rails Cache
Rails CacheRails Cache
Rails Cache
 
What Can Compilers Do for Us?
What Can Compilers Do for Us?What Can Compilers Do for Us?
What Can Compilers Do for Us?
 
Revisited
RevisitedRevisited
Revisited
 
Reification
ReificationReification
Reification
 
090309seminar talk about Cloud Computing
090309seminar talk about Cloud Computing090309seminar talk about Cloud Computing
090309seminar talk about Cloud Computing
 
20090323 Phpstudy
20090323 Phpstudy20090323 Phpstudy
20090323 Phpstudy
 
1242626441API2 upload
1242626441API2 upload1242626441API2 upload
1242626441API2 upload
 
【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...
【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...
【13-A-2】 「Delphi for PHP のエバンジェリストが、日本の PHP エバンジェリストと、 PHP と IDE の今と未来を語る」~Em...
 
yusukebe in Yokohama.pm 090909
yusukebe in Yokohama.pm 090909yusukebe in Yokohama.pm 090909
yusukebe in Yokohama.pm 090909
 
Rails Deployment with NginX
Rails Deployment with NginXRails Deployment with NginX
Rails Deployment with NginX
 
Spring Framework勉強会
Spring  Framework勉強会Spring  Framework勉強会
Spring Framework勉強会
 
UAI seminor at nagoya 20080515
UAI seminor at nagoya 20080515UAI seminor at nagoya 20080515
UAI seminor at nagoya 20080515
 
온톨로지 개념 및 표현언어
온톨로지 개념 및 표현언어온톨로지 개념 및 표현언어
온톨로지 개념 및 표현언어
 
Five Minutes Introduction For Rails
Five Minutes Introduction For RailsFive Minutes Introduction For Rails
Five Minutes Introduction For Rails
 

Último

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 

Último (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Working With Rails

  • 1. Working with Rails Web development that doesn’t hurt! Skype: Caiwangqin July, 2007
  • 2. About Caiwangqin 蔡望勤,湖北黄冈人。 } 1997年开始接触计算机,对计算机编程情有独钟。曾在广州为赛百威 } (Cyberway)、宝洁(P&G)工作,而后为国际知名企业做人力资源管 理系统(HRMS),如伟创力(Flextronics)、安美特(AutoTec)、欧科 (EuroTec)、东风汽车乘用车等,系统持续运行至今。 2005年底加入南京UUZone,开始专注于研究Ruby on Rails和Web2.0领 } 域。 现任亚艺网媒科技有限公司技术总监。 }
  • 3. Presentation Agenda Real Word Rails } Brief overview of Ruby } Brief overview of Rails } Description of Rails framework } Demo } Questions and Answers } Ask questions at any time }
  • 4.
  • 10. More Real World Rails http://happycodr.com/ } Ruby on Rails Showcase } http://railscn.memebot.com/demobox/popular.htm } Ruby on Rails in Chinese sites } http://wiki.rubyonrails.org/rails/pages/RealWorldUsage } Real companies with real applications running Rails }
  • 11. What is Ruby? Object-Oriented scripting language } Conceptual similarities to Smalltalk } Many system and text manipulation features like Perl } Emphasis on simplicity and design elegance }
  • 12. What is Ruby on Rails? Just a joke…
  • 13. So, What is Rails? Rails is a Framework, only a MVC Web Application Framework written in Ruby. Some constraints make it easier to create applications. } ActiveRecord API } ActionController API } Templating Engine } Scripts and lots of other stuff…
  • 15. Rails Directory Structure Execute Rails my_app command } Directory: } my_app/ } app/ #view controller model 都存放在该目录中 } components/ #存放一些可重用的组件 } config/ #配置信息,数据库的连接参数 } db/ #schema 信息 } doc/ #自动生成文档 } lib/ #共享的代码 } log/ # } public/ #一些公共的web资源 } Rakefile } script/ #很多的脚本 } test/ #单元测试,功能测试等 } vendor/ #第三方代码 }
  • 17.
  • 19. Get Started Install Ruby , RubyGems } http://www.rubyonrails.org/down } Install Rails gem install rails --include-dependencies } Make Rails Application rails path/to/your/new/application cd path/to/your/new/application ruby script/server } Visit Rails http://127.0.0.1:3000
  • 20. Demo Start… }
  • 21. Deploy Rails Webrick } Apache(lighttpd) + CGI } Apache+FastCGI } Lighttpd + FastCGI } Apache(lighttpd)+SCGI }
  • 22. Web 2.0 and Rails Fast time-to-market } Tight integration with AJAX libraries } New emphasis on focused, interoperable applications } Less time coding infrastructure means more emphasis } on clean design and elegance in all aspects of the application
  • 23. Why Ruby on Rails Because it's fun! Programming should be a fun and creative experience. }
  • 24.
  • 25. Why not Ruby on Rails handle existing databases } huge application } developers without passion }
  • 27. Railser in china 2006感动铁道中国十大杰出青年 } Fikko } 飞戈 首创中文最大的RoR论坛 Railscn, 原创Rails的作品有顶啊网, 易做网等 个人blog http://www.fikko.net/ 在上海, 经常 } 因工作忙潜水,偶尔换气 道喜 } cnruby gudao.luo at gmail 点com 其个人blog 道喜技术日记 包含丰富的内容, 各种工具的使用技巧, Rails框架技术讲座论坛, } 讲解细致步骤清楚, 图文并茂, 也可以下载实例代码 http://www.hhtong.com/blog1/ 骆先生身在德国慕尼黑, 现在筹划中文 Rails和Ruby的电子杂志 徐家涛 } Apemanchen 北京人 dochance的站长, 组织多次Rails北京活动, 免费为Rails的爱好者学习者赠送他个人购买的dreamhost空 } 间, 19人因此受惠, 现正计划更大规模的一日活动Hackathon http://www.dochance.com/ 范凯 } Robbin 在Java精英中独具慧眼的识宝者, 在程序员杂志和其影响的网站上介绍红宝石和铁道, 并付诸实践改造了原来的Java视野 } , 实施了民主化的试验并不断推进技术影响力的进程, 打造blog和bbs与其它新元素的交流统一环境 透明 } Jeff 熊节 gigix 最早也是Java名人向Ruby和Rails投橄榄枝的, 并编审了国内第一本Rails的翻译书, 敏捷开发的布道者, 推广 } Rails的同时推广ThoughtWorks的产品和理念 与Apemanchen共同组织Beijing 爱好者的活动
  • 28. Railser in china 2006感动铁道中国十大杰出青年 } 考拉 } 最早中文教程的作者,下载最大影响最大的“Ruby on Rails 实践“在各大网站都有下载, http://railscn.com/viewtopic.php?t=8 Railscn的 } 下载量惊人, 今年考拉工作室又推出原创的音乐评论乐道网 http://www.likenote.com/ http://koalant.javaeye.com Cookoo } Railscn 和 JavaEye 两大R and R 社区的积极参与者,发表许多精华文章,这位在国际共产主义战士白求恩的故乡加拿大工作的上海籍青年, } 在本年度的程序员杂志上发表专文介绍Rails开发的工具和技巧,并建立了Gtalk的即时聊天群落,不仅两岸三地的汉语Rails和Ruby交流,世界 各地中英文的爱好者都可以上去讨论技术及时解决问题,他还对财务和商业管理和猪宝宝感兴趣 chinaonrails at gmail 即时讨论组上可以快速 找到银昊,blog: cookoo.javaeye.com 松鼠 } 柳靖 东北大连人, 研究生在读, 写出以个人实践为内容的第一本原创RoR中文书 http://www.railscn.com/about1942.html 柳同学对待比较 } 其它语言和框架及技术选型上非常平和豁达, 不希望过多的精力投入到论战当中 Qiezi } 茄子代表快乐的笑口常开, 是热心帮助人的技术高手,不论问题有多难或者多简单,都不厌其烦地细致解答, 而且对于连问题都没有问全的不完 } 整性垃圾题也能谆谆诱导为之解惑 http://qiezi.javaeye.com/ Caiwangqin } Jesse Cai 蔡望勤 Focus on web2.0, mashup类型的程序,酷不酷, Beast绑OpenId,Rails中文书写平台还有 ChinaonRails的Rforum } 论坛都是他的部署,他还是Railscn的技术版版主, 上半年组织了周二9点的聚会活动 http://caiwangqin.com
  • 29. Books
  • 30. Questions? Questions and Comments
  • 31. In Conclusion… Thank you } Resources } Rails has a large enthusiastic community at rubyonrails.org } Ruby on Rails Chinese community at chinaonrails.com } I blog regularly about Rails and web 2.0 topics at } http://www.caiwangqin.com I love getting email… } jesse.cai@gmail.com