Rails 3.2.0.rc2 has been released!
Posted by spastorino January 04, 2012 @ 09:01 PM
Hi everyone,
Rails 3.2.0.rc2 has been released!
What to update in your apps
- Update your Gemfile to depend on rails ~> 3.2.0.rc2
- Update your Gemfile to depend on sass-rails ~> 3.2.3
- Start moving any remaining Rails 2.3-style
vendor/plugins/*. These are finally deprecated!
Extract your vendor/plugins to their own gems and bundle them in your Gemfile. If they're tiny, not worthy of the own gem, fold it into your app as lib/myplugin/* and config/initializers/myplugin.rb.
Changes since RC1
ActionMailer
- No changes
ActionPack
Add font_path helper method Santiago Pastorino
Depends on rack ~> 1.4.0 Santiago Pastorino
Add :gzip option to
caches_page. The default option can be configured globally usingpage_cache_compressionAndrey Sitnik
ActiveModel
- No changes
ActiveRecord
- No changes
ActiveResource
- No changes
ActiveSupport
- ActiveSupport::Base64 is deprecated in favor of ::Base64. Sergey Nartimov
Railties
Rails 2.3-style plugins in vendor/plugins are deprecated and will be removed in Rails 4.0. Move them out of vendor/plugins and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. Santiago Pastorino
Guides are available as a single .mobi for the Kindle and free Kindle readers apps. Michael Pearson & Xavier Noria
Allow scaffold/model/migration generators to accept a "index" and "uniq" modifiers, as in: "tracking_id:integer:uniq" in order to generate (unique) indexes. Some types also accept custom options, for instance, you can specify the precision and scale for decimals as "price:decimal{7,2}". Dmitrii Samoilov
Gem checksums
- MD5 (actionmailer-3.2.0.rc2.gem) = 118c83b2cddaa935d1de7534cfb6c810
- MD5 (actionpack-3.2.0.rc2.gem) = 6b18851bc26d5c8958672f27adda05ca
- MD5 (activemodel-3.2.0.rc2.gem) = d82f4eed949dcff17f8bf2aed806679a
- MD5 (activerecord-3.2.0.rc2.gem) = d07806fd5fc464f960200d20ceb2193a
- MD5 (activeresource-3.2.0.rc2.gem) = f51af240ff4623b0b6f8a4293ffa50dc
- MD5 (activesupport-3.2.0.rc2.gem) = 01380240c12e0380c9e61c97dd45f2f1
- MD5 (rails-3.2.0.rc2.gem) = 134f923f7d821f514abf6bdf4af62ca7
- MD5 (railties-3.2.0.rc2.gem) = 4b3ac0f9c5da16b90a1875e8199253d2
You can find an exhaustive list of changes on github. Along with the closed issues marked for v3.2.0.
You can also see issues we haven't closed yet.
Thanks to everyone!

Hmm, that :gzip option looks interesting! Think the web server is going to like this. ;)
Heroku currently injects configuration code into vendor/plugins to configure your application for the Heroku platform. Other deployment systems do the same. For example, Heroku injects a plugin to disable x_sendfile, and another plugin to set Rails.logger to log to $stdout.
If vendor/plugins is to be phased out, how should Heroku and other deployment systems inject configuration code? An initializer?
Thanks!
Anyone know where the .mobi guides are?
Found here: https://github.com/rails/rails/blob/master/railties/guides/source/kindle/KINDLE.md
But running KINDLE=1 rake generate_guides (or rake generate_guides) says: Don’t know how to build task ‘generate_guides’
Any ideas anyone?
@Jay Feldbaum
These systems run “bundle install” on the server anyway – simply make it a full-blown gem and patch it into the Gemfile.
Ok got it – I’ll submit an updated how-to later on tonight.
$ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
$ gem -v 1.8.13
$ gem install rails—pre ERROR: Error installing rails: actionpack requires journey (~> 1.0.0.rc1)
Jay Feldblum: an initializer is fine.
hipertracker: if you run gem install rails—pre again do you still get the same error?, doesn’t make any sense actionpack requires journey (~> 1.0.0.rc1) and journey 1.0.0.rc4 is available, so Rubygems should pick that one
Santiago Pastorino: I get the same error. To solve it I had to install “journey -v 1.0.0.rc1” and then “gem install rails—pre”. I don’t know why actionpack wants 1.0.0.rc1. I removed all gems ant that’s true: ‘gem install journey -v ”~> 1.0.0.rc1” ’ installs 1.0.0.rc4 …
Ok here’s the step-by-step if anyone needs it: https://github.com/rails/rails/pull/4312/files
Awesome .mobi version of the guides btw – nice work Michael & Xavier!!
What to update in your apps section is the best inclusion for this blog. I hope to see this section in every release .
All green here so far. Yes, the “What to update in your apps” is very helpful. Great job, Rails Team.
While installing 3.2.0.rc2 I have the same error as hipertracker, so I opened an issue here: https://github.com/rails/rails/issues/4317
One more update step:
Update your Gemfile to depend on coffee-rails ~> 3.2.1
Re: deprecating vendor/plugins – what is the thinking for those of us who have plugin-based architectures where we are actively developing multiple full-stack plugins with cross-plugin dependencies?
Having to rebuild/rebundle my gems and restart my dev server each time I change a view in an engine seems like a massive workflow pain point, relative to the current seamless reload.
Thoughts?
I second Rob’s question. The “engine” functionality is completely central to a workflow we have in place, as we need to replicate both our models and our models’ unit tests across three separate repositories.
I’d love it if we could keep some of the dynamic reloading fun from engines, although I recognize the need for a consistent solution to loading third-party libraries.
+1 on @Flip Sasser and @Rob Morris’s comments