Ruby on Rails 3
-
Upload
derbumi -
Category
Technology
-
view
2.449 -
download
2
description
Transcript of Ruby on Rails 3
![Page 1: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/1.jpg)
Rails 3
Mittwoch, 3. Februar 2010
![Page 2: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/2.jpg)
23.12.2009
+
Mittwoch, 3. Februar 2010
![Page 3: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/3.jpg)
2004-2010
Mittwoch, 3. Februar 2010
![Page 4: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/4.jpg)
Ruby 1.9 / JRuby / REE
Mittwoch, 3. Februar 2010
![Page 5: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/5.jpg)
Ruby on Rails 3
Mittwoch, 3. Februar 2010
![Page 6: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/6.jpg)
Was ist anders?
Mittwoch, 3. Februar 2010
![Page 7: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/7.jpg)
eigentlich nichts...
>> rails next-big-thing
Mittwoch, 3. Februar 2010
![Page 8: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/8.jpg)
Mittwoch, 3. Februar 2010
![Page 9: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/9.jpg)
script/server
Mittwoch, 3. Februar 2010
![Page 10: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/10.jpg)
Mittwoch, 3. Februar 2010
![Page 11: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/11.jpg)
Vielen Dank...
Mittwoch, 3. Februar 2010
![Page 12: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/12.jpg)
:D
Mittwoch, 3. Februar 2010
![Page 13: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/13.jpg)
The great decoupling
Mittwoch, 3. Februar 2010
![Page 14: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/14.jpg)
ORM Agnosticism
Mittwoch, 3. Februar 2010
![Page 15: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/15.jpg)
Problem...
Mittwoch, 3. Februar 2010
![Page 16: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/16.jpg)
Problem...
Mittwoch, 3. Februar 2010
![Page 17: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/17.jpg)
Problem...ActiveRecord
Mittwoch, 3. Februar 2010
![Page 18: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/18.jpg)
Problem...
DataMapper, Sequel, etc.?
ActiveRecord
Mittwoch, 3. Februar 2010
![Page 19: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/19.jpg)
ActionORM
• new_record?
• errors
• valid?
• initialize
Mittwoch, 3. Februar 2010
![Page 20: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/20.jpg)
ActionORM
• new_record?
• errors
• valid?
• initialize
anything like ActiveRecord
Mittwoch, 3. Februar 2010
![Page 21: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/21.jpg)
ActionORM
Mittwoch, 3. Februar 2010
![Page 22: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/22.jpg)
ActiveModel
Mittwoch, 3. Februar 2010
![Page 23: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/23.jpg)
ActiveModel• Callbacks
• Dirty
• Validations
• Oberserving
• StateMachine
• Translation
Mittwoch, 3. Februar 2010
![Page 24: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/24.jpg)
Mittwoch, 3. Februar 2010
![Page 25: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/25.jpg)
Arel
Mittwoch, 3. Februar 2010
![Page 26: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/26.jpg)
A Relational Algebra for Ruby
Mittwoch, 3. Februar 2010
![Page 27: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/27.jpg)
Mittwoch, 3. Februar 2010
![Page 28: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/28.jpg)
Mittwoch, 3. Februar 2010
![Page 29: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/29.jpg)
http://gist.github.com/265308
Mittwoch, 3. Februar 2010
![Page 30: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/30.jpg)
Bundler Bubble
Mittwoch, 3. Februar 2010
![Page 31: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/31.jpg)
Gemfile
Mittwoch, 3. Februar 2010
![Page 32: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/32.jpg)
cannot activate xx 1.1 already activated xx 1.0
Mittwoch, 3. Februar 2010
![Page 33: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/33.jpg)
Bubble
• Alle dependencies in einer Datei
• Auflösen der dependencies ohne die App zu starten
• Unabhängig von neuen Vesionen
• Nachdem die dependencies aufgelöst sind muss nichts mehr von gemcutter geladen werden => reproduzierbares environemt
Mittwoch, 3. Februar 2010
![Page 34: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/34.jpg)
Mittwoch, 3. Februar 2010
![Page 35: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/35.jpg)
Rack
Mittwoch, 3. Februar 2010
![Page 36: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/36.jpg)
Make the simplest possible API that
represents a generic web application
Mittwoch, 3. Februar 2010
![Page 37: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/37.jpg)
request => response
Mittwoch, 3. Februar 2010
![Page 38: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/38.jpg)
RequestHTTP CGI
Mittwoch, 3. Februar 2010
![Page 39: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/39.jpg)
ResponseStatus
Header
Body
Mittwoch, 3. Februar 2010
![Page 40: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/40.jpg)
[Status, Header, Body]
Mittwoch, 3. Februar 2010
![Page 41: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/41.jpg)
Rack - die Spec
http://chneukirchen.org/talks/euruko-2007/neukirchen07introducingrack.pdf
Mittwoch, 3. Februar 2010
![Page 42: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/42.jpg)
\m/Mittwoch, 3. Februar 2010
![Page 43: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/43.jpg)
HTTP APP\m/ \m/ \m/
Mittwoch, 3. Februar 2010
![Page 44: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/44.jpg)
Mittwoch, 3. Februar 2010
![Page 45: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/45.jpg)
Controller#callRouter#call
Mittwoch, 3. Februar 2010
![Page 46: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/46.jpg)
controller actions
Mittwoch, 3. Februar 2010
![Page 47: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/47.jpg)
Mittwoch, 3. Februar 2010
![Page 48: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/48.jpg)
RouterRails Controller
Merb Controller
Sinatra
Rails Router Rails Controller
Mittwoch, 3. Februar 2010
![Page 49: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/49.jpg)
Router
Mittwoch, 3. Februar 2010
![Page 50: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/50.jpg)
Mittwoch, 3. Februar 2010
![Page 51: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/51.jpg)
Rack + Router
Mittwoch, 3. Februar 2010
![Page 52: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/52.jpg)
Mittwoch, 3. Februar 2010
![Page 53: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/53.jpg)
Mittwoch, 3. Februar 2010
![Page 54: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/54.jpg)
Generic Actions
Mittwoch, 3. Februar 2010
![Page 55: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/55.jpg)
Mittwoch, 3. Februar 2010
![Page 56: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/56.jpg)
ActionController::Responder
Mittwoch, 3. Februar 2010
![Page 57: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/57.jpg)
Mittwoch, 3. Februar 2010
![Page 58: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/58.jpg)
Custom Responders
Mittwoch, 3. Februar 2010
![Page 59: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/59.jpg)
Mittwoch, 3. Februar 2010
![Page 60: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/60.jpg)
und sonst so?
• Mail - the new ruby e-mail library
• alias_method_chain vs. Modules
• unobstrusive + library unabhängiges JavaScript
•
Mittwoch, 3. Februar 2010
![Page 61: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/61.jpg)
What to do?
• Ruby 1.9 !
• Rack!
• Router
• Aerel
• API
Mittwoch, 3. Februar 2010
![Page 62: Ruby on Rails 3](https://reader034.fdokument.com/reader034/viewer/2022050919/547e3474b4af9f87478b4700/html5/thumbnails/62.jpg)
Fragen?
Mittwoch, 3. Februar 2010