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 using page_cache_compression Andrey 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!

Posted in Releases | 18 comments

Comments

  1. Ramses on 04 Jan 22:24:

    Hmm, that :gzip option looks interesting! Think the web server is going to like this. ;)

  2. Jay Feldblum on 04 Jan 22:30:

    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?

  3. AstonJ on 04 Jan 23:13:

    Thanks!

    Anyone know where the .mobi guides are?

  4. AstonJ on 04 Jan 23:29:

    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?

  5. Lukas Fittl on 04 Jan 23:38:

    @Jay Feldbaum

    These systems run “bundle install” on the server anyway – simply make it a full-blown gem and patch it into the Gemfile.

  6. AstonJ on 04 Jan 23:58:

    Ok got it – I’ll submit an updated how-to later on tonight.

  7. hipertracker on 05 Jan 00:23:

    $ 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)

  8. Santiago Pastorino on 05 Jan 00:44:

    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

  9. hipertracker on 05 Jan 01:40:

    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 …

  10. AstonJ on 05 Jan 03:31:

    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!!

  11. prabesh708@gmail.com on 05 Jan 07:18:

    What to update in your apps section is the best inclusion for this blog. I hope to see this section in every release .

  12. Jon on 05 Jan 14:07:

    All green here so far. Yes, the “What to update in your apps” is very helpful. Great job, Rails Team.

  13. german on 05 Jan 15:42:

    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

  14. liang.gimi@gmail.com on 06 Jan 17:29:

    One more update step:

    Update your Gemfile to depend on coffee-rails ~> 3.2.1

  15. Rob Morris on 06 Jan 19:57:

    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?

  16. Flip Sasser on 24 Jan 03:36:

    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.

  17. Brad on 25 Jan 23:19:

    +1 on @Flip Sasser and @Rob Morris’s comments

  18. jim on 01 Feb 19:59: