Rails 3 Upgrade
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Rails 3 Upgrade

  • 1,596 views
Uploaded on

Lightning talk for American Express Publishing Online Team for August 5, 2011. Discusses some major and minor points we would have to watch out for when we eventually move our front-end......

Lightning talk for American Express Publishing Online Team for August 5, 2011. Discusses some major and minor points we would have to watch out for when we eventually move our front-end applications to Rails 3.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,596
On Slideshare
1,596
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
7
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Getting Ready to Ride Rails 3.0
  • 2. Comprehensive Tests
    Do code coverage. When you start changing things your failed tests will point the way.
  • 3. Ruby 1.8.7 or 1.9.2
    No, not 1.8.6 and definitely not 1.9.1 even though it might trick you at first glance. Don’t do it!!!
  • 4. Have fun wrestling with Bundler!
    Bundler is the new way to manage gem dependencies.
  • 5. Rails 3 is JavaScript Agnostic
    Start converting JavaScript now.
  • 6. Rails Metal Has Been Removed
    Noticed partner feeds in FWR includes metal, will need to be transitioned…
  • 7. Removing Metal from Rails 3.
    if your metal behaves like a middleware, add it to the middleware stack via config.middleware.use. You can use methods on the middleware stack to control exactly where it should go
    if it behaves like a Rack endpoint, you can link to it in the router. This will result in more optimal routing time, and allows you to remove code in your endpoint that matches specific URLs in favor of the more powerful handling in the router itself.
    For the future, you can use ActionController::Metal to get a very fast controller with the ability to opt-in to specific controller features without paying the penalty of the full controller stack.
    Since Rails 3 is closer to Rack, the Metal abstraction is no longer needed.
    Source: http://github.com/rails/rails/commit/ed34652d1aca148fea61c5309c1bd5ff3a55abfa
  • 8. RAILS_ROOT, RAILS_ENV, and RAILS_DEFAULT_LOGGER constants are now deprecated
    Railties, one of the Gems part of the Rails 3 framework, now deprecates the following global constants:
    RAILS_ROOT in favor of Rails.root
    RAILS_ENV in favor of Rails.env
    RAILS_DEFAULT_LOGGER in favor of Rails.logger
  • 9. Resources
    The Road to Rails 3
    http://www.simonecarletti.com/blog/2010/07/the-way-to-rails-3/
    Ruby on Rails Tutorial: Learn Rails by Example
    http://railstutorial.org/?discount=hackernews01
    Screencast: Upgrading applications to Rails 3
    http://thinkcode.tv/catalog/upgrading-rails-3/?utm_source=simonecarletti.com&utm_medium=link&utm_content=message-rails3upgrade&utm_campaign=rails3upgrade
    Rails 3 Book in Digital Library