Ruby on Rails Overview
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Ruby on Rails Overview

on

  • 560 views

This presentation stands for overview to describe Ruby on Rails.

This presentation stands for overview to describe Ruby on Rails.

Statistics

Views

Total Views
560
Views on SlideShare
560
Embed Views
0

Actions

Likes
1
Downloads
14
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Ruby on Rails Overview Presentation Transcript

  • 1. Ruby on RailsOverviewKoki Shimizu(u2daijibrother@gmail.com)13年4月18日木曜日
  • 2. What is Rails?Rails is a web application developmentframework written in the Ruby.13年4月18日木曜日
  • 3. The Rails philosophy includesseveral guiding principles•DRY (Don’t Repeat Yourself)•CoC (Convention over Configuration)•REST(REpresentational State Transfer)Railsはソフトウェア開発上重要な、いくつかの設計実装手法、考え方を元に作成されている。13年4月18日木曜日
  • 4. DRYEvery piece of knowledge must have asingle, unambiguous, authoritativerepresentation within a system.すべての知識はシステム内において、単一、かつ明確な、そして信頼できる表現になっていなければならない。13年4月18日木曜日
  • 5. DRY• Documents and Code• Code Comments• State• Class/Utlity13年4月18日木曜日
  • 6. CoCDesign paradigm to decrease thenumber of decisions that developersneed to make, gaining simplicity, but notnecessarily losing flexibility.設定より規約。規約に従った実装を行い、開発者に決定させるべきことを少なくし、単純さを維持する。13年4月18日木曜日
  • 7. CoC• Mapping File ( Class to DB Table )• Class Name/ Method Name• Folder Structure/ Namespace Design• Template Method/ Class Design13年4月18日木曜日
  • 8. RESTREST is an architectural style and thebest pattern for web application.RESTは、アーキテクチャスタイルの一つであり、良いWEBアプリケーションのためのパターンである。13年4月18日木曜日
  • 9. RESTResource ResourceEach request includes all of theinformation.HTTPThe set of operations supportedby the web service using HTTPmethods as known well-defined-interface (e.g., GET, PUT, POST, orDELETE).Uniform InterfaceStatelessHTML,XML or JSON etcHTML,XML or JSON etcResponse is cacheable toimproving scalability andperformance.CacheableKEY GOALS of REST include:•Scalability of component interactions•Generality of interfaces•Independent deployment of components•Intermediary components to reduce latency, enforce security and encapsulatelegacy systems13年4月18日木曜日
  • 10. MVCModel-View-Controller• Isolation of business Logic from the user interface• Ease of keeping code DRY• Making it clear where different types of code belong foreasier maintenance13年4月18日木曜日
  • 11. MVCModel-View-Controller• Isolation of business Logic from the user interface• Ease of keeping code DRY• Making it clear where different types of code belong foreasier maintenanceControllerView Model Storage13年4月18日木曜日
  • 12. MVCModel-View-Controller• Isolation of business Logic from the user interface• Ease of keeping code DRY• Making it clear where different types of code belong foreasier maintenance①ControllerView Model StorageRequest to controller from user interface13年4月18日木曜日
  • 13. MVCModel-View-Controller• Isolation of business Logic from the user interface• Ease of keeping code DRY• Making it clear where different types of code belong foreasier maintenance①②ControllerView Model StorageRequest to controller from user interfaceController calls Model and gets results13年4月18日木曜日
  • 14. MVCModel-View-Controller• Isolation of business Logic from the user interface• Ease of keeping code DRY• Making it clear where different types of code belong foreasier maintenance①②③ControllerView Model StorageRequest to controller from user interfaceController calls Model and gets resultsController puts View the results13年4月18日木曜日
  • 15. MVCModel-View-Controller• Isolation of business Logic from the user interface• Ease of keeping code DRY• Making it clear where different types of code belong foreasier maintenance①②③④ControllerView Model StorageRequest to controller from user interfaceController calls Model and gets resultsController puts View the resultsView is rendered user interface13年4月18日木曜日
  • 16. MVC on Rails13年4月18日木曜日
  • 17. MVC on RailsControllerView Model DB13年4月18日木曜日
  • 18. MVC on RailsControllerView Model DBRouter13年4月18日木曜日
  • 19. MVC on Rails①ControllerView Model DBRouterBrowser posts request to Router13年4月18日木曜日
  • 20. MVC on Rails①ControllerView Model DBRouter discovers controller to execute and Rails executes the controllerRouter②Browser posts request to Router13年4月18日木曜日
  • 21. MVC on Rails①③ControllerView Model DBRouter discovers controller to execute and Rails executes the controllerController calls Model and gets resultsRouter②Browser posts request to Router13年4月18日木曜日
  • 22. MVC on Rails①③④ControllerView Model DBRouter discovers controller to execute and Rails executes the controllerController calls Model and gets resultsController puts View the resultsRouter②Browser posts request to Router13年4月18日木曜日
  • 23. MVC on Rails①③④⑤ControllerView Model DBRouter discovers controller to execute and Rails executes the controllerController calls Model and gets resultsController puts View the resultsView is rendered user interfaceRouter②Browser posts request to Router13年4月18日木曜日
  • 24. Model13年4月18日木曜日
  • 25. View•eRuby•Sassy-CSS•JavaScript(CoffeeScript)•AJAX•JQuery13年4月18日木曜日
  • 26. Controller•Redirect•Session Manager13年4月18日木曜日
  • 27. Development Flowon RailsControllerViewModelScaffoldMigrationOne Iteration13年4月18日木曜日