Blog von Slagwerks

Some Snags Along the Way to Rails 2.0 PR

Update: Looks like I would have done well to wait a day before upgrading to the 2.0 preview.

I’m giving the Rails 2.0 Preview Release a spin, and finding that upgrading an existing 1.2.3 app is not totally seamless. Hitches I’ve run into so far:

  • Ran into the missing active_resource issue, discussed at kopongo.com.
  • A bunch of tests failed due to the oddity described (and patched) in ticket 9525.
  • My nested resource routes all broke. Before if you had urls like http://example.com/posts/1/comments you’d get routes like comments_path. Now, you don’t; you get post_comments_path. I did find the new `rake routes` output awfully helpful for debugging this one.

Not too bad for a fairly big version jump. Other than the aforementioned annoyances, it’s too early for me to say much about the improvements in 2.0. I certainly do like the prettier RESTful URLs, and the prospect of a working debugger was a big motivator.