Ruby 1.9 And Rails 3.0

8,325 views

Published on

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

No Downloads
Views
Total views
8,325
On SlideShare
0
From Embeds
0
Number of Embeds
192
Actions
Shares
0
Downloads
160
Comments
0
Likes
15
Embeds 0
No embeds

No notes for slide
  • Rails 3 is een merge van alle good-practices van Merb en RailsMerb is een framework geschreven omdat ze vonden dat Rails bepaalde dingen fout deden.
  • Rails 3.0 is niet 1.8.6 compatibel
  • ActiveRecord & Datamapper doen dit al, Sequel gebruikt hier een adapter voor
  • Rack, Framework to interact between WebServers and Web frameworks. Takes in request, handles it, passes it to Framework.
  • Ruby 1.9 And Rails 3.0

    1. 1. Ruby 1.9 & Rails 3 new stuff!
    2. 2. Ruby 1.9
    3. 3. Ruby 1.9
    4. 4. Ruby 1.9.1 Stable
    5. 5. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    6. 6. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    7. 7. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    8. 8. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    9. 9. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    10. 10. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    11. 11. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    12. 12. Installation wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz tar zxvf ruby-1.9.1-p243.tar.gz cd ruby-1.9.1-p243 ./configure --program-suffix=1.9 make sudo make install
    13. 13. Changed stuff
    14. 14. case
    15. 15. String#[]
    16. 16. Hashes are sorted!
    17. 17. Block variables
    18. 18. New stuff! Jay!
    19. 19. flexible parameters
    20. 20. flexible parameters (2)
    21. 21. new hash notation
    22. 22. Symbol#to_proc
    23. 23. Enumerator
    24. 24. lambda - shorthand
    25. 25. lambda - calling
    26. 26. Object#tap
    27. 27. Rails 3
    28. 28. Merb
    29. 29. Ruby 1.8.7 or 1.9.1
    30. 30. ORM Agnostic
    31. 31. ActionORM • initialize • new_record? • errors • valid? • to_model
    32. 32. Rack Middleware
    33. 33. controller actions
    34. 34. Session
    35. 35. Param parsing
    36. 36. Rescuing
    37. 37. Router
    38. 38. Multiple apps
    39. 39. Controller Merb Router Rails Request Router Router Sinatra app Rack app
    40. 40. Plugin API
    41. 41. Notifications (used to be “Orchestra”)
    42. 42. Hook into events
    43. 43. non-blocking
    44. 44. Javascript
    45. 45. non-obtrusive
    46. 46. Library agnostic
    47. 47. rails.prototype.js
    48. 48. rails.jquery.js
    49. 49. rails.moo.js
    50. 50. rails.you?.js
    51. 51. ActionController::Responder
    52. 52. code
    53. 53. Custom Responders
    54. 54. Public API Changes
    55. 55. Rails 2.3 == Rails 3.0
    56. 56. Questions?

    ×