Well, finally it’s there, many important improvements were added to rails 2.2, and yet new things are on the way, you can check this blog post to check what’s new, while i’m gonna list here what i really liked about the new version of rails 2.2:
If you really don’t know what it means, then most probably you want to check this post by Charles Nutter, however in short terms: threaded rails with a native threaded implementation of ruby (jruby in our case) will save your memory , make your app more scalable, and most importantly it will make the app deployment very easy, specially when glassfish gem or even with jetty-rails gem is used.
And you Just have to make sure your app is thread safe, follow this post by Pratik Naik.
So many people complained about this point before, but this a fact is from past now
, just fire your terminal , go to ur app path, and run :
rake doc:guides
This will create doc/guides in your project root , with a comprehensive rails guide to learn from.
A support for i18n is there now, so you don’t have to install any extra gem or plugin, a comprehensive demo is put there, just be aware that you don’t need to install the plugin when following the demo, cause it’s already there in rails 2.2 .
Also check the I18n screencast by Ryan Bates.
Now it’s possible to cache an action without it’s corresponding layout:
class HomepageController < ApplicationController # Just pass the param layout with false value caches_action :feedback, :layout => false ... end
This is really cool, cause in many cases our layout will contain some info related to user status in the website.
As for me, those enhancements and additions listed above , where the most benifitical for my work, other things might attract your attention, for more information about what’s new, i strongly urge you to look at Ruby on Rails 2.2 PDF by By Carlos Brando.