Rails 3

991 views

Published on

What makes Rails 3 suave? Hear it from one of Exist's resident rockstars, Nuks.

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

  • Be the first to like this

No Downloads
Views
Total views
991
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Rails 3

  1. 1. Rails 3: A Cleaner, Faster and More Beautiful Rails -DHH 10/01/10 Wilfrido T. Nuqui Jr. (wnuqui@g2ix.com)
  2. 2. <ul><li>Rails 3 </li></ul><ul><li>- New AR Query Engine </li></ul><ul><li>- New Router for AC </li></ul><ul><ul><li>- New AM </li></ul></ul><ul><ul><li>- Dependency Management with Bundler </li></ul></ul><ul><ul><li>- XSS Protection </li></ul></ul><ul><ul><li>- Encoding Issues </li></ul></ul><ul><ul><li>- Using AR Components in NON-AR Models </li></ul></ul><ul><ul><li>- Rewritten Internals </li></ul></ul><ul><ul><li>- Not Just DB Agnostic </li></ul></ul><ul><ul><li>- Documentation </li></ul></ul>Outline
  3. 3. - more consistent and composable queries - complex queries are easy to build - on demand query execution New AR Query Engine
  4. 4. CODE
  5. 5. - complete syntax revamp - REST style with less noise and more flexibility New Router for AC
  6. 6. CODE
  7. 7. - now AM is all controller - now AC and AM share some code New AM
  8. 8. CODE
  9. 9. - before, all solutions are patchworks - config.gem, Capistrano externals, custom rake setup tasks etc - but now, all your application depends on are taken care of Bundler Dependency Management with Bundler
  10. 10. Ruby 1.9 tools + Rails 3 EQUALS ZERO &quot;question mark inside a diamond&quot; character Encoding Issues, Now a Thing in the Past
  11. 11. - a number of AR components now extracted for the GOOD of other Ruby Models: validations, callbacks, serialization and I18n support direct AC references of AR removed ORMs like DataMapper, Sequel or Mongoid can use AR's features: - form_for, link_to and redirect_to AR Components Used in NON-AR Models
  12. 12. - AP and Railties component both received surgery - rewrote made them now more flexible and easier to extend - from one monolithic AR::Base comes several modules that are: - with defined APIs - mixable to produce special-purpose controllers for a particular use - Django-style generic action can now be easily implemented in Rails - RG has got a revamp as well new RG can create generators for other frameworks like rSpec, DataMapper and Haml Rewritten Internals
  13. 13. - now, Rails is JS framework, Test framework and ORM agnostic - &quot;Web Development That Doesn't Hurt&quot; -> &quot;Have It Your Way&quot; Not Just DB Agnostic
  14. 14. - wealth of Guides, tutorials, screencasts, official videos - and there are still more coming in terms of these wealth Documentation
  15. 15. - http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done - http://rubyonrails.org/screencasts/rails3 - http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/ References

×