Saterus
Saterus

Reputation: 549

What to Learn: Rails 1.2.4 -> Rails 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.

Upvotes: 2

Views: 711

Answers (3)

Sidane
Sidane

Reputation: 2101

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.

Upvotes: 1

Tate Johnson
Tate Johnson

Reputation: 3950

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:

Upvotes: 9

mikewilliamson
mikewilliamson

Reputation: 24793

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.

Upvotes: 2

Related Questions