Ruby on Rails
Ruby on Rails—                     Web                     	      —  RoR         Rails        	      —  Ruby           ...
Rails              	—  David Heinemeier Hansson        	    	                  basecamp”                                 ...
Rails               	        ⇛ http://rubyonrails.org/applications
Rails           	                      Rails          Web        Rails        Web          p.2	                       —  ...
Rails                 	                 DRY Don’t Repeat Yourself                                        	       —       ...
Rails MVC                                            	—  Model    	                       MVC Web                    Mode...
Active Record—  Active Record = Rails               ORM   	       	                              ActiveRecord RDBMS      ...
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                            ...
REST                                   	REST                  2                                   	—  Fielding REST    We...
RESTful                     web             	 —                                     	—              HTTP         	      ...
RESTful    web           	 —  Web—  Web—  REST     Web               or   or
COM CORBA                                       	—  Web              COM CORBA                       	—           Web   ...
SOAP vs. REST	—  SOAP REST                                     	—  2002     Amazon Web                 	      —  SOAP  ...
RESTful                                   	—                            
      
      
                                  ...
RESTful                             	—                      
      
      
          REST                            REST...
RESTful                          	—  Amazon.com …                        REST         SOAP                    REST       ...
Rails                REST                        	—  Restlet Java     RESTful                 
        Lightweight)Java  ...
Rails 3
Rails3                        	—  Action Dispatch—  Bundler & Action Mailer—  Active Relation & Active Model—  Cross-s...
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 proc...
Active Relation & Active Model	—  Active Relation gives you a more powerful syntax for    pulling data into your applicat...
Cross-site scripting &Unobtrusive JavaScript	—  Cross-site scripting (XSS) protection has been improved    in Rails 3. Ht...
New Action Controller	—  The Action Controller stack has been completely    overhauled to allow for increased modularity ...
Rails                          	—  Ruby  —  Rails                    or 1.9.2  —  Mac OS X 10.5                       	...
Rails                                   	—  Mac OS X                        Ruby      Rails                              ...
expenses—  rails new expenses	—  cd expenses—  rails server—  http://localhost:3000
Hello, Rails!	                                     Hello, World!        —  rails generate controller Say	        —  cd e...
1.                           	2.        URL   Rails             	3.  URL                      	4.                         ...
Manifesto for Agile Software Development	     We are uncovering better ways of developing      software by doing it and he...
—                                    	—                                                	             —                 ...
Rails.20110405
Rails.20110405
Upcoming SlideShare
Loading in …5
×

Rails.20110405

4,573 views

Published on

第21回あしたのオープンソース研究所 Ruby on Rails 座談会資料

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,573
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
10
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Rails.20110405

  1. 1. Ruby on Rails
  2. 2. Ruby on Rails—  Web —  RoR Rails —  Ruby —  MVC —  Rails Wikipedia
  3. 3. Rails —  David Heinemeier Hansson basecamp” —  —  —  —  — 
  4. 4. Rails ⇛ http://rubyonrails.org/applications
  5. 5. Rails Rails Web Rails Web p.2 —  Ajax —  REST
  6. 6. Rails DRY Don’t Repeat Yourself —  CoC Convention over Configuration —  MVC
  7. 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. 8. Active Record—  Active Record = Rails ORM ActiveRecord RDBMS RDBMS Wikipedia 2011.4.4 —  ORM Object-Relational Mapping — 
  9. 9. Action Pack —  Action Pack = Action Controller + Action View —  Action Pack Rails — 
  10. 10. Action Controller
  11. 11. Action View —  Helper—  — 
  12. 12. RESTful web
  13. 13. REST Representational State Transfer —  REST Wikipedia—  2000 HTTP Roy Fielding —  REST XML HTTP Web SOAP MEP Message Exchange Pattern; SOAP Wikipedia
  14. 14. REST REST 2 —  Fielding REST Web —  RPC XML+HTTP (SOAP ) Wikipedia
  15. 15. RESTful web —  —  HTTP —  GET —  PUT —  POST —  DELETE—  —  URL
  16. 16. RESTful web —  Web—  Web—  REST Web or or
  17. 17. COM CORBA —  Web COM CORBA —  Web RESTful Web p.ix—  HTTP Web HTTP XML p.xii
  18. 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. 19. RESTful —  
 
 
 RESTful RESTful 
 Rails Web p.378
  20. 20. RESTful —  
 
 
 REST RESTful 
 Rails Web p.379
  21. 21. RESTful —  Amazon.com … REST SOAP REST —  eBay…REST —  Yahoo!…REST —  Zope —  Wikipedia
  22. 22. Rails REST —  Restlet Java RESTful 
 Lightweight)Java —  Django Python Web 
 MVC —  BEAR PHP PHP5 
 DI Web
  23. 23. Rails 3
  24. 24. Rails3 —  Action Dispatch—  Bundler & Action Mailer—  Active Relation & Active Model—  Cross-site scripting & Unobtrusive JavaScript—  New Action Controller
  25. 25. Dive into Rails 3
  26. 26. Action Dispatch —  Action Dispatch contains a new syntax for routing which is even more concise and readable.
  27. 27. Bundler & Action Mailer —  Rails 3 ships with Bundler, a Ruby library that makes Dependency Management a painless process.
  28. 28. Active Relation & Active Model —  Active Relation gives you a more powerful syntax for pulling data into your application. Well learn about the new syntax and discover how to leverage Active Model to enhance our plain old Ruby objects.
  29. 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. 30. New Action Controller —  The Action Controller stack has been completely overhauled to allow for increased modularity and code reuse. Well learn about Abstract Controller and the new respond_to syntax to help simplify RESTful controllers.
  31. 31. Rails —  Ruby —  Rails or 1.9.2 —  Mac OS X 10.5 —  RubyGems —  Ruby —  Rails —  gem install rails
  32. 32. Rails —  Mac OS X Ruby Rails Rails RubyGems —  sudo gem update --system —  sudo gem install rails —  fetch —  gem list … —  gem server —  http://localhost:8088 …
  33. 33. expenses—  rails new expenses —  cd expenses—  rails server—  http://localhost:3000
  34. 34. Hello, Rails! Hello, World! —  rails generate controller Say —  cd expenses —  rails server —  http://localhost:3000
  35. 35. 1.  2.  URL Rails 3.  URL 4.  5.  ERb 6. 
  36. 36. 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/
  37. 37. —  —  —  —  http://agilemanifesto.org/iso/ja/

×