views:

288

answers:

3

I've recently convinced my management that our outdated version of Rails (1.2.4) is slowing us down enough to warrant an upgrade. The approach we're taking is to start a fresh project with current technology rather than a painful upgrade. Our requirements for the project have changed and this will be much easier.

The biggest problem is actually that my knowledge of Rails is out of date. I've dealt only with Rails 1.2.4 at work while the rest of the world has moved on long ago. What topics have I missed by being buried in my work instead of keeping up with the current Rails fashion?

I'm hesitant to dig through blogs at random because I'm not sure how much has changed between the intervening versions of Rails. It's no use to learn Rails 2.1-2.3 specific stuff that is no longer useful for Rails 3.

+2  A: 

I would take a look at Peepcodes live upgrade video. In it they upgrade a Rails 2 app to Rails 3. That should give you some inkling of what you are in for (even though your upgrade would look pretty different) so you can make a somewhat informed decision.

Mike Williamson
+6  A: 

Most noticeable changes for application developers:

Other conventions and APIs to be aware of if you're coming from Rails 1.X which were introduced in Rails 2.X and exist in Rails 3.

  • RESTful controllers
  • Scope (Formally named scope)
  • Query caching
  • Nested attributes

Can't emphasise enough how RESTful controllers and scopes will enable you to write cleaner rails applications with more reusability. Tonne of information floating around on these topics.

Further reading about the development of Rails 3:

Tate Johnson
+1  A: 

It's also worth checking out the excellent Railscasts by Ryan Bates at http://railscasts.com/

He covers a lot of new features in Rails as they come out (with recent screencasts focusing on Rails 3), so they're a nice way to get up to speed.

Sidane