Rails 3
Mittwoch, 3. Februar 2010
23.12.2009
+
Mittwoch, 3. Februar 2010
2004-2010
Mittwoch, 3. Februar 2010
Ruby 1.9 / JRuby / REE
Mittwoch, 3. Februar 2010
Ruby on Rails 3
Mittwoch, 3. Februar 2010
Was ist anders?
Mittwoch, 3. Februar 2010
eigentlich nichts...
>> rails next-big-thing
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
script/server
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Vielen Dank...
Mittwoch, 3. Februar 2010
:D
Mittwoch, 3. Februar 2010
The great decoupling
Mittwoch, 3. Februar 2010
ORM Agnosticism
Mittwoch, 3. Februar 2010
Problem...
Mittwoch, 3. Februar 2010
Problem...
Mittwoch, 3. Februar 2010
Problem...ActiveRecord
Mittwoch, 3. Februar 2010
Problem...
DataMapper, Sequel, etc.?
ActiveRecord
Mittwoch, 3. Februar 2010
ActionORM
• new_record?
• errors
• valid?
• initialize
Mittwoch, 3. Februar 2010
ActionORM
• new_record?
• errors
• valid?
• initialize
anything like ActiveRecord
Mittwoch, 3. Februar 2010
ActionORM
Mittwoch, 3. Februar 2010
ActiveModel
Mittwoch, 3. Februar 2010
ActiveModel• Callbacks
• Dirty
• Validations
• Oberserving
• StateMachine
• Translation
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Arel
Mittwoch, 3. Februar 2010
A Relational Algebra for Ruby
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
http://gist.github.com/265308
Mittwoch, 3. Februar 2010
Bundler Bubble
Mittwoch, 3. Februar 2010
Gemfile
Mittwoch, 3. Februar 2010
cannot activate xx 1.1 already activated xx 1.0
Mittwoch, 3. Februar 2010
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
Mittwoch, 3. Februar 2010
Rack
Mittwoch, 3. Februar 2010
Make the simplest possible API that
represents a generic web application
Mittwoch, 3. Februar 2010
request => response
Mittwoch, 3. Februar 2010
RequestHTTP CGI
Mittwoch, 3. Februar 2010
ResponseStatus
Header
Body
Mittwoch, 3. Februar 2010
[Status, Header, Body]
Mittwoch, 3. Februar 2010
Rack - die Spec
http://chneukirchen.org/talks/euruko-2007/neukirchen07introducingrack.pdf
Mittwoch, 3. Februar 2010
\m/Mittwoch, 3. Februar 2010
HTTP APP\m/ \m/ \m/
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Controller#callRouter#call
Mittwoch, 3. Februar 2010
controller actions
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
RouterRails Controller
Merb Controller
Sinatra
Rails Router Rails Controller
Mittwoch, 3. Februar 2010
Router
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Rack + Router
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Generic Actions
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
ActionController::Responder
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
Custom Responders
Mittwoch, 3. Februar 2010
Mittwoch, 3. Februar 2010
und sonst so?
• Mail - the new ruby e-mail library
• alias_method_chain vs. Modules
• unobstrusive + library unabhängiges JavaScript
•
Mittwoch, 3. Februar 2010
What to do?
• Ruby 1.9 !
• Rack!
• Router
• Aerel
• API
Mittwoch, 3. Februar 2010
Fragen?
Mittwoch, 3. Februar 2010