Rails 2.0 Presentation

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    12 Favorites

    Rails 2.0 Presentation - Presentation Transcript

    1. Rails 2.0 “evolution, not revolution”
    2. Rails 2.0 Overview RESTful web architectures some small feature maturations removal of features determined to be not essential
    3. Action Pack ActionController + ActionView
    4. Multiview “Machine-Gunning .rhtml and .rxml” (action.mimetype.renderer) show.html.erb index.atom.builder edit.iphone.haml
    5. Partial Layouts
    6. Partial Layouts
    7. Routing Resources
    8. Routing Namespaces link_to ‘variants’, admin_product_variants_url(@product) /admin/products/:product_id/variants
    9. Record Identification redirect_to(person) link_to(person.name, person) form_for(person)
    10. HTTP Authentication
    11. authenticate_or_request_with_http_basic
    12. Exception Handling
    13. controllers/application.rb rescue_from
    14. Atom Feed Helper
    15. Stolen from the DHH announcement
    16. Mime::Type Predicates controller.request.format.html? controller.request.format.xml?
    17. Performance Asset Servers Asset Caching Cookie Based Sessions
    18. most browsers will only make up to two simultaneous connections to any one domain Asset Servers
    19. config/environment.rb Asset Servers
    20. config/environment.rb Asset Servers will always use the same server for a single file
    21. Asset Caching
    22. Cookie Based Sessions
    23. example stolen from ryan daigle Cookie Sessions Security
    24. Security CSRF Protection TextHelper#sanitize HTTP only cookies
    25. CSRF Protection
    26. Active Resource Short Overview of Resources
    27. A consumer of RESTful resources Active Resource
    28. A consumer of RESTful resources As ActiveRecord is a consumer of relational database resources Active Resource
    29. ActiveResource Models
    30. Active Resource Actions Http REST request Model request Request URI Response operation body find(id) GET n/a /people/id.xml <XML> Status: save (update) PUT <XML> /people/id.xml 200 OK Location: save (create) POST <XML> /people http://x/people/id.xml Status: destroy DELETE n/a /people/id.xml 200 OK list GET n/a /people <XML> credit: ryan diagle
    31. demo
    32. Active Record
    33. Validations
    34. :allow_blank validates_numericality
    35. :allow_blank validates_numericality
    36. Sexy Migrations
    37. “Cold Shower” Migrations
    38. Err Sexy Migrations
    39. Rails 2.0 Sexy 4 fewer lines + rails programmers == sexy
    40. References
    41. Query Cache
    42. Query Cache Logging
    43. Disabling the Query Cache
    44. Fixtures Foxy Fixtures Collection Fixtures Fixture Performance
    45. conferences.yml places.yml Foxy Fixtures
    46. conferences.yml places.yml Foxy Fixtures
    47. Was Now Collection Fixtures
    48. Data Exchange to_xml, from_xml to_json, from_json
    49. /conferences/show/1.js to_json
    50. to_xml
    51. Other Stuff
    52. rake
    53. rake notes
    54. rake notes
    55. rake notes
    56. rake db rake db:create rake db:create:all rake db:drop rake db:drop:all rake db:reset rake db:rollback rake db:version
    57. rake routes
    58. rake routes route name, HTTP method, route path, route requirements
    59. helper :all
    60. rails my_new_app
    61. Request Profiler RubyProf Wrapper ./script/performance/request -n 10 login_session.rb
    62. /config/initializers/
    63. initializers directory
    64. initializers directory
    65. initializers directory
    66. config/preinitializer.rb loaded before the environment files
    67. Scaffolding ./script/generate scaffold conference name:string description:text start_date:date end_date:date
    68. Resourceful Scaffolding
    69. Breakpoints
    70. gem install ruby-debug
    71. add ‘debugger’ to code
    72. ./script/server -u
    73. demo
    74. www.datanoise.com/ruby-debug
    75. Upgrading to 2.0
    76. Deprecations
    77. with_scope
    78. Components
    79. Pagination
    80. Object Transactions
    81. http://code.bitsweat.net/svn/object_transactions/
    82. ActionWebService ActiveResource
    83. syntax changes @params params[] @session session[] @flash flash[] @request request[] @env env[] find_all find(:all) find_first find(:first) render_partial render :partial :post => true :method => :post
    84. start_form_tag end_form_tag form_for do end
    85. start_form_tag end_form_tag form_tag </form>
    86. Extracting to Plugins and Gems acts_as some js helpers commercial database adapters
    87. ./script/plugin install acts_as_list acts_as_nested_set acts_as_tree auto_complete in_place_editing
    88. gem install activerecord-X-adapter --source http://gems.rubyonrails.com firebird frontbase informix openbase oracle sqlserver sybase
    89. Upgrade Process gem install rails -y
    90. Resources • Peepcode Rails2 PDF - Ryan Daigle ($9) • http://weblog.rubyonrails.org • /2007/12/7/rails-2-0-it-s-done • http://ryandaigle.com • /articles/2007/12/7/rails-2-0-final-released-summary-of-features • http://www.slashdotdash.net • /articles/2007/12/03/rails-2-upgrade-notes
    91. Thanks! noesbueno.org/rails2
    92. Work with me @ http://www.reactrix.com/careers.php schacon@gmail.com Sr. Web Developer Linux Systems Administrator Sr. Game/Interaction Programmer Computer Vision Engineer

    + Scott ChaconScott Chacon, 2 years ago

    custom

    6136 views, 12 favs, 8 embeds more stats

    These are the slides from my presentation on Rails more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 6136
      • 5982 on SlideShare
      • 154 from embeds
    • Comments 0
    • Favorites 12
    • Downloads 362
    Most viewed embeds
    • 122 views on http://jointheconversation.org
    • 11 views on http://www.calvinchan.net
    • 10 views on http://www.jointheconversation.org
    • 7 views on http://noesbueno.org
    • 1 views on http://self.ish.ly

    more

    All embeds
    • 122 views on http://jointheconversation.org
    • 11 views on http://www.calvinchan.net
    • 10 views on http://www.jointheconversation.org
    • 7 views on http://noesbueno.org
    • 1 views on http://self.ish.ly
    • 1 views on http://reinholdweber.com
    • 1 views on http://feeds.feedburner.com
    • 1 views on http://static.slideshare.net

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories