Posts Tagged: upgrade

Text

As I am upgrading one of our projects to rails3 right now, I had to deal with lots of obsolete and not longer working code. And I came across this little gem I picked up from Pratik Naik. It allows you to nest your layouts pretty easily. If you upgrade to rails3 you have to change the code to:

def parent_layout(layout)
  @_content_for[:layout] = self.output_buffer
  self.output_buffer = render(:file => "layouts/#{layout}")
end

RubyOnRails does no longer use multiple instance variables to store the contents, but a single hash. 

Text

I am wondering when and, more important, how the first larger applications will be ported to rails3. When I check my largest and most important project, I see a lot of gems and plugins which are not yet supported. For some of them there is not even the slightest note on any progress towards rails3 compatibility. I know, as a good citizen of the open source community, I should help and update them myself. But there are far too many. So I will be stuck with rails 2.3.5.

I guess I will fork and upgrade a few smaller projects as soon as there will be time again. But I wonder why the adoption path seems so slow. Or am I missing something?