SlideShare a Scribd company logo
Ruby on Rails
Ruby on Rails
—                     Web                     	
      —  RoR         Rails        	
      —  Ruby                	
      —  MVC                           	

—  Rails        	
       	
                                         Wikipedia
Rails              	
—  David Heinemeier Hansson        	
    	
                  basecamp”
                                                   	
  —                           	
  —                                     	
  —                                 	
  —                                 	
  — 
Rails               	




        ⇛ http://rubyonrails.org/applications
Rails           	
                      Rails
          Web



        Rails        Web          p.2	


                       —  Ajax
                       —  REST
Rails                 	
                 DRY Don’t Repeat Yourself
                                        	
       —                                        	



             CoC Convention over Configuration
                                    	
 —                    MVC
Rails MVC                                            	
—  Model
    	
                       MVC Web                    Model RDBMS
                                         Rails   Active Record
     Model                                 ActiveRecord::Base
                                              RDBMS
                                                                 	

—  View
         MVC        View
                                                   Web
         HTML                                                	

—  Controller
         MVC        Controller Rails Action Pack
                                          Web      MVC
         Web
               	
                                                         Wikipedia
Active Record
—  Active Record = Rails               ORM   	
       	
                              ActiveRecord RDBMS
                                                   RDBMS
                                                           	
         Wikipedia 2011.4.4        	
  	

—  ORM Object-Relational Mapping 	
  — 
Action Pack	
—  Action Pack = Action Controller + Action View
  —  Action Pack   Rails                    	
  — 
Action Controller
Action View	
—  Helper



—           	



— 
RESTful   web
REST          Representational State Transfer           	
 
—  REST

  Wikipedia

—  2000     HTTP                               Roy
    Fielding                                       	

—  REST
                    XML
                      HTTP
                      Web            SOAP
       MEP Message Exchange Pattern; SOAP


                                  Wikipedia
REST                                   	
REST                  2                                   	

—  Fielding REST
    Web                	

—  RPC                     XML+HTTP
                    (SOAP       )



                                            Wikipedia
RESTful                     web             	
 
—                                     	

—              HTTP         	
      —    GET
      —    PUT
      —    POST
      —    DELETE

—                     	
      —  URL
RESTful    web           	
 
—  Web



—  Web



—  REST     Web
               or   or
COM CORBA                                       	
—  Web              COM CORBA                       	

—           Web
                                  RESTful Web
      p.ix

—             HTTP
                 Web
                 HTTP            XML



             p.xii
SOAP vs. REST	
—  SOAP REST                                     	

—  2002     Amazon Web                 	
      —  SOAP    REST                                 	
      —          SOAP    REST                    	
      —      SOAP REST                      	


—                Web2.0 Google        Amazon          REST        	
      —  REST                                         	
      —  SOAP                                                	
      —         REST             	

                                             Web                   pp.22-24
RESTful                                   	
—                            

      

      


                                    RESTful
                    RESTful

                                          

      	
          Rails   Web             p.378
RESTful                             	
—                      

      

      

          REST
                            RESTful


                                         

      	
          Rails   Web       p.379
RESTful                          	
—  Amazon.com …                        REST
         SOAP                    REST
                       	

—  eBay…REST                            	

—  Yahoo!…REST                               	

—  Zope                    	

—         	

                                         Wikipedia
Rails                REST                        	
—  Restlet Java
     RESTful                 

        Lightweight)Java           	


—  Django Python
   	
                       Web              

                    MVC                 	


—  BEAR PHP
   	
                       PHP5    

                   DI Web
Rails 3
Rails3                        	
—  Action Dispatch

—  Bundler & Action Mailer

—  Active Relation & Active Model

—  Cross-site scripting & Unobtrusive JavaScript

—  New Action Controller
Dive into Rails 3
Action Dispatch	
—  Action Dispatch contains a new syntax for routing which
    is even more concise and readable.
Bundler & Action Mailer	
—  Rails 3 ships with Bundler, a Ruby library that makes
    Dependency Management a painless process.
Active Relation & Active Model	
—  Active Relation gives you a more powerful syntax for
    pulling data into your application. We'll learn about the
    new syntax and discover how to leverage Active Model to
    enhance our plain old Ruby objects.
Cross-site scripting &
Unobtrusive JavaScript	
—  Cross-site scripting (XSS) protection has been improved
    in Rails 3. Html 5 standards have also been adopted to
    encourage unobtrusive javascript and allow for seamless
    integration of any Javascript Framework.
New Action Controller	
—  The Action Controller stack has been completely
    overhauled to allow for increased modularity and code
    reuse. We'll learn about Abstract Controller and the new
    respond_to syntax to help simplify RESTful controllers.
Rails.20110405
Rails                          	
—  Ruby
  —  Rails                    or 1.9.2
  —  Mac OS X 10.5                       	


—  RubyGems
  —  Ruby                	


—  Rails
  —  gem install rails
Rails                                   	
—  Mac OS X                        Ruby      Rails
                                    Rails     RubyGems        	
      —  sudo gem update --system	
      —  sudo gem install rails	

—                                          fetch              	
      —  gem list …                                     	
      —  gem server
      —  http://localhost:8088 …
expenses

—  rails new expenses	

—  cd expenses

—  rails server

—  http://localhost:3000
Rails.20110405
Hello, Rails!	

                                     Hello, World!

        —  rails generate controller Say	

        —  cd expenses

        —  rails server

        —  http://localhost:3000
1.                           	

2.        URL   Rails             	

3.  URL                      	

4.                                          	

5.  ERb                                	

6. 
Manifesto for Agile Software Development
	
     We are uncovering better ways of developing
      software by doing it and helping others do it.
       Through this work we have come to value:

   —  Individuals and interactions over processes and tools

   —  Working software over comprehensive documentation

    —  Customer collaboration over contract negotiation

       —  Responding to change over following a plan

       That is, while there is value in the items on
      the right, we value the items on the left more.

                http://agilemanifesto.org/
—                                    	

—                                                	

             —                         	

      — 




            http://agilemanifesto.org/iso/ja/

More Related Content

PPSX
PDF
Gephi Consortium Presentation
PDF
Ruby on Rails : 簡介與入門
KEY
FxUG@北陸資料
PDF
On being RESTful
KEY
大規模環境でRailsと4年間付き合ってきて@ クックパッド * 食べログ合同勉強会
PDF
REST in Practice
Gephi Consortium Presentation
Ruby on Rails : 簡介與入門
FxUG@北陸資料
On being RESTful
大規模環境でRailsと4年間付き合ってきて@ クックパッド * 食べログ合同勉強会
REST in Practice

Similar to Rails.20110405 (20)

PDF
Python Ireland Nov 2010 - RESTing with Django
PDF
REST Introduction (PHP London)
PPTX
RESTful for opentravel.org by HP
PDF
Rails 2.0 Presentation
PDF
Making Your Perl REST
PDF
Rs on Rails 2011
PPT
Ruby on rails
PPTX
RESTful Web Services
PDF
09 - Fábio Akita - Além do rails
PDF
.NET Architects Day - DNAD 2011
PDF
Agile RESTful Web Development
PPT
Service migration
PDF
遇見 Ruby on Rails
PPT
Soap and Rest
PDF
Exploring REST Purity and Pragmatism
PDF
Exploring REST Purity and Pragmatism - Tuesday, November 6, 2012
PDF
02s0102基于rails的大型b2 b系统架构优化 于冰赵晓锋
PDF
02s0102基于rails的大型b2 b系统架构优化 于冰赵晓锋
PDF
Ruby projects of interest for DevOps
PDF
Ricardo Sanchez - Ruby projects of interest for devops
Python Ireland Nov 2010 - RESTing with Django
REST Introduction (PHP London)
RESTful for opentravel.org by HP
Rails 2.0 Presentation
Making Your Perl REST
Rs on Rails 2011
Ruby on rails
RESTful Web Services
09 - Fábio Akita - Além do rails
.NET Architects Day - DNAD 2011
Agile RESTful Web Development
Service migration
遇見 Ruby on Rails
Soap and Rest
Exploring REST Purity and Pragmatism
Exploring REST Purity and Pragmatism - Tuesday, November 6, 2012
02s0102基于rails的大型b2 b系统架构优化 于冰赵晓锋
02s0102基于rails的大型b2 b系统架构优化 于冰赵晓锋
Ruby projects of interest for DevOps
Ricardo Sanchez - Ruby projects of interest for devops
Ad

More from あしたのオープンソース研究所   (13)

Ad

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
KodekX | Application Modernization Development
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
A Presentation on Artificial Intelligence
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Approach and Philosophy of On baking technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Encapsulation theory and applications.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Network Security Unit 5.pdf for BCA BBA.
KodekX | Application Modernization Development
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
A Presentation on Artificial Intelligence
Mobile App Security Testing_ A Comprehensive Guide.pdf
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
“AI and Expert System Decision Support & Business Intelligence Systems”
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Approach and Philosophy of On baking technology
Electronic commerce courselecture one. Pdf
Machine learning based COVID-19 study performance prediction
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Encapsulation theory and applications.pdf
NewMind AI Monthly Chronicles - July 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
Reach Out and Touch Someone: Haptics and Empathic Computing

Rails.20110405

  • 2. Ruby on Rails —  Web —  RoR Rails —  Ruby —  MVC —  Rails Wikipedia
  • 3. Rails —  David Heinemeier Hansson basecamp” —  —  —  —  — 
  • 4. Rails ⇛ http://rubyonrails.org/applications
  • 5. Rails Rails Web Rails Web p.2 —  Ajax —  REST
  • 6. Rails DRY Don’t Repeat Yourself —  CoC Convention over Configuration —  MVC
  • 7. Rails MVC —  Model MVC Web Model RDBMS Rails Active Record Model ActiveRecord::Base RDBMS —  View MVC View Web HTML —  Controller MVC Controller Rails Action Pack Web MVC Web Wikipedia
  • 8. Active Record —  Active Record = Rails ORM ActiveRecord RDBMS RDBMS Wikipedia 2011.4.4 —  ORM Object-Relational Mapping — 
  • 9. Action Pack —  Action Pack = Action Controller + Action View —  Action Pack Rails — 
  • 12. RESTful web
  • 13. REST Representational State Transfer —  REST Wikipedia —  2000 HTTP Roy Fielding —  REST XML HTTP Web SOAP MEP Message Exchange Pattern; SOAP Wikipedia
  • 14. REST REST 2 —  Fielding REST Web —  RPC XML+HTTP (SOAP ) Wikipedia
  • 15. RESTful web —  —  HTTP —  GET —  PUT —  POST —  DELETE —  —  URL
  • 16. RESTful web —  Web —  Web —  REST Web or or
  • 17. COM CORBA —  Web COM CORBA —  Web RESTful Web p.ix —  HTTP Web HTTP XML p.xii
  • 18. SOAP vs. REST —  SOAP REST —  2002 Amazon Web —  SOAP REST —  SOAP REST —  SOAP REST —  Web2.0 Google Amazon REST —  REST —  SOAP —  REST Web pp.22-24
  • 19. RESTful —  
 
 
 RESTful RESTful 
 Rails Web p.378
  • 20. RESTful —  
 
 
 REST RESTful 
 Rails Web p.379
  • 21. RESTful —  Amazon.com … REST SOAP REST —  eBay…REST —  Yahoo!…REST —  Zope —  Wikipedia
  • 22. Rails REST —  Restlet Java RESTful 
 Lightweight)Java —  Django Python Web 
 MVC —  BEAR PHP PHP5 
 DI Web
  • 24. Rails3 —  Action Dispatch —  Bundler & Action Mailer —  Active Relation & Active Model —  Cross-site scripting & Unobtrusive JavaScript —  New Action Controller
  • 26. Action Dispatch —  Action Dispatch contains a new syntax for routing which is even more concise and readable.
  • 27. Bundler & Action Mailer —  Rails 3 ships with Bundler, a Ruby library that makes Dependency Management a painless process.
  • 28. Active Relation & Active Model —  Active Relation gives you a more powerful syntax for pulling data into your application. We'll learn about the new syntax and discover how to leverage Active Model to enhance our plain old Ruby objects.
  • 29. Cross-site scripting & Unobtrusive JavaScript —  Cross-site scripting (XSS) protection has been improved in Rails 3. Html 5 standards have also been adopted to encourage unobtrusive javascript and allow for seamless integration of any Javascript Framework.
  • 30. New Action Controller —  The Action Controller stack has been completely overhauled to allow for increased modularity and code reuse. We'll learn about Abstract Controller and the new respond_to syntax to help simplify RESTful controllers.
  • 32. Rails —  Ruby —  Rails or 1.9.2 —  Mac OS X 10.5 —  RubyGems —  Ruby —  Rails —  gem install rails
  • 33. Rails —  Mac OS X Ruby Rails Rails RubyGems —  sudo gem update --system —  sudo gem install rails —  fetch —  gem list … —  gem server —  http://localhost:8088 …
  • 34. expenses —  rails new expenses —  cd expenses —  rails server —  http://localhost:3000
  • 36. Hello, Rails! Hello, World! —  rails generate controller Say —  cd expenses —  rails server —  http://localhost:3000
  • 37. 1.  2.  URL Rails 3.  URL 4.  5.  ERb 6. 
  • 38. Manifesto for Agile Software Development We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value: —  Individuals and interactions over processes and tools —  Working software over comprehensive documentation —  Customer collaboration over contract negotiation —  Responding to change over following a plan That is, while there is value in the items on the right, we value the items on the left more. http://agilemanifesto.org/
  • 39. —  —  —  —  http://agilemanifesto.org/iso/ja/