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
—
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
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.
31.
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
35.
36. Hello, Rails!
Hello, World!
— rails generate controller Say
— cd expenses
— rails server
— http://localhost:3000
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/