Some highlight differences difference being:
# ActiveRecord query syntax
2.X: User.all(:conditions => {:name => "aaron"}, :limit => 1)
3.X: User.where(:name => "aaron").limit(1)
# ActionMailer API now closely matches the ActionController API
2.X:
class Notifier
def user_notification(user)
recipients user.email
subject "test subject"
from "system@test.com"
body :user => user
end
end
3.X:
class Notifier
default :from => "system@test.com"
def user_notification(user)
@user = user
end
end
In Rails 3 Gem dependencies are managed using Bundler, which means that you have to explicitly declare all of the gems your application uses, even fundamental things like Rails and Rack. Calls to config.gem need to be removed, and added to a Gemfile instead.There are quite a few more API changes than what I have listed here, routes in particular will change greatly for complex applications. The full details are here: http://guides.rails.info/3_0_release_notes.html
So far, the tutorial actually seems fairly accurate. Differences so far: the tutorial has you use RSpec 1 for testing, but RSpec 2 (prerelease) is required for Rails 3. Also, routing is completely different in Rails 3, which shows up early on (when you create a new static page without autogenerating it) and then later in the routing section. Then there's the minor matter of using "rails generate" and "rails server" instead of "script/server" and "script/generate".