Rails 3 code...

You could look at the Rails 3 branch at github:

http://github.com/rails/rails/tree/3-0-unstable