Rails 2.3.0 RC1: Templates, Engines, Rack, Metal, much more!
Posted by David February 01, 2009 @ 11:40 PM
Rails 2.3 is almost ready for release, but this package is so stock full of amazing new stuff that we’re making dutifully sure that everything works right before we call it official.
So please help us do thorough testing of this release candidate. Lots of the underpinnings changed. Especially the move to Rack. So we need solid testing and will probably have a slightly longer than average release candidate phase to account for that.
But boy will it be worth it. This is one of the most substantial upgrades to Rails in a very long time. A brief rundown of the top hitters:
- Templates: Allows your new skeleton Rails application to be built your way with your default stack of gems, configs, and more.
- Engines: Share reusable application pieces complete with routes that Just Work, models, view paths, and the works.
- Rack: Rails now runs on Rack which gives you access to all the middleware goodness.
- Metal: Write super fast pieces of optimized logic that routes around Action Controller.
- Nested forms: Deal with complex forms so much easier.
And that’s just the tip of the iceberg. We’ve put together a complete guide for the Rails 2.3 release notes with much more information.
You can install the release candidate with:
gem install rails --source http://gems.rubyonrails.org
Enjoy, report the bugs, and let’s get Rails 2.3 final out the door soon.

Ah great stuff once again!
Really looking forward seeing what good use people make of the new engines and templates.
Yay! +1 for engines!
Go cards!!!
Nested model forms ftw!
My models thank you.
Great Rails!
Great, looking forward to it!
Are there any examples of the Engines technology?
Amiel, I think your just one of those multi talented genius kinda guys!
You might need to install Rack first: sudo gem install rack
See: http://m.onkey.org/2008/11/17/ruby-on-rack-1
My models will are happy to see nested forms are back. Also, +1 for Rack and Metal. Stunning release candidate. Can’t wait to test the new functionality.
Thank you very very very much !
Are there any news about globalize 2 support?
I’ve written up an explanation of which features from the engines plugin have made it into Rails so far here:
http://rails-engines.org/news/2009/02/02/engines-in-rails-2-3/
Hope that’s useful!
Who ever said giving was better than receiving never got a gift like this: NESTED FORMS! I’ve been waiting for this for a very long time. Thanks guys.
The news Rails application rock`s. The nested forms are one of the powerfull features for me.
thx :-)
Any word on when there’ll be a 2-3 branch on github?
James, we won’t branch for 2-3 until it’s out in final. Until then master is the 2-3 branch. But I’ve tagged v2.3.0 at http://github.com/rails/rails/tree/v2.3.0
I’m going to try it because 2.2.2 is giving me constant authenticity token errors. I’ve worked on this about 7 hours. No I would never cache a formed page and yes I’m using built in form helpers. I’m in a emergency situation here. I went to rescue_action_in_public for that error type and SessionLifetime code but it still isn’t working right. It happens after the users session expires but the part that makes the token expire doesn’t even after refreshing the form or going to other forms on other pages. Restarting the server (software) is only way to get past it and use a form again. It doesn’t even help to close and reopen the browser. It is very odd.
Anybody knows if it’s possible to install this (or even final) version on Instant Rails?
Hello@all great work that the ROR Team is doing, it looks like a very promising 2009. I see a leaping Frog hopping off … today is the day a stable version of Ruby 1.9.1 was released, which is really important and I hope many optimizations will follow. What would be really nice is a an easy way to install ROR on Ubuntu like an automatic installation via Synaptic, or even pre-installed. Cheers
So great to hear it! was waiting for good nested forms handling, from very long time.
HTTp Digest seems to still be broken. My co-worker is going to explain on lighthouse, but basically, the request.url is being used instead of the uri that is passed in by the client in the credentials hash. The way it stands, digest authentication seems to fail if running the most basic application on localhost.
Great Update this is gonna be. The project keeps making huge progress. Really looking forward to 2.3.
One thing, in development. How can you auto-reload the app/views from a plugin? With config.reload_plugins the other load_paths are reloaded.
This is really loaded with awesome features. One suggestion, though, before 2.3 final is released, is that “templates” be called something a little more specific to distinguish between then and … er, um templates. Normally that term refers to something in the view. Why not call these generator templates or development templates or something like that?
Great, I just tested models, controllers, views via rails engine and all work great (extending models, controller and overriden views / layouts work too: wonderful !!!!).
How can I handle static public resources inside rails engine ? (public/images – javascripts – stylesheets)
This command
gem install rails—source http://gems.rubyonrails.org
Keeps installing 2.2.2, and not 2.3 for me..
What am I doing wrong..
+1 for not overloading “Templates”. “Application Templates”, while sensible, is also too vague. I like #23’s “Generator Templates”.
I would vote for “Application Templates”.
Great job guys.. Just upgraded all the apps I’m working on to 2.3
Don’t you think ‘Rack’ gem should be an included dependency now.
Does somebody else have this problem with the improper implicit Routing of the show-action in rails 2.3.0RC ?
Somebody already reported this on Lighthouse:
http://rails.lighthouseapp.com/projects/8994/tickets/1856-routes-problem
Since it is so common to use the idion http://localhost/members/2 instead of http://localhost/members/show/2 the problem must have been spotted by nearly everyone using Rails 2.3.0 or did I miss a change in the routes configuration when reading the release notes?
Greets -act
I upgraded from 2.2.2. First thing I noticed that Webrick is super slow. I mean really slow. As in 40 seconds per click. Even to generate a simple view.
Version 2.2.2 is instantaneous.
Any suggestions on where I need to look?
Thanks.
When I try to install from the source it only installs rails and none of the dependencies. Active-support… Not sure what to make of it.
FYI, after switching to 2.3 RC1.. On my Rails.cache.read attributes—lib/active_support/cache/memory_store.rb was giving me tons of frozen hash errors (from a long used production application) until I commented out .freeze from @data[name] = value.freeze. The Authenticity Token error I discussed on an earlier post on this thread has be fixed. Other than that,smooth sailing. RAILS 2.3 IS AWESOME JUST LIKE ITS PREDECESSORS! Maybe one day I’ll get to the point I can help out. Thanks everyone and JESUS RULES!
ruby ruby ruby ruby!
Did rails just get lonely and want to gobble up the world or what?? haha. First Merb, now Engines. My oh my. Can get snake eat his own whole tail or what.
This is great news! Can’t wait to test the new nested form feature. It’s always nice to do that in a non hackish way:) One observation though, after upgrading my existing rails 2.2 app, the development environment runs much slower than it used to, any thoughts on that?
So when is the release going to be finalized?
mac rails 2.3 can’t load mysql gem
ERROR: While executing gem … (Errno::EPERM) Operation not permitted – /usr/local/lib/ruby/gems/1.9.1/gems/mysql-2.7/COPYING
what to do please
thanks
i installed rails 2.3 today using the source given above. although it installed fine, but it nows sits beside the older 2.2.2
am using netbeans as the IDE, its able to see that both versions are there, but uses the older 2.2.2
Please include mysql gem in 2.3 like ver 1.2.6 does. This feature greatly helps developers using mac Xserve servers.
Thanks.
Yoshi: Why not just install the mysql gem yourself it really isnt that hard?
I’ve tried getting 2.3 RC1 from the source above but it only showing 2.2 as available?
Danny : Yes. Installing mysql gem is very easy. However, since Leopard running on mac Xserve server comes with 64-bit MySQL and 32 bit Ruby interpreter, the gem cannot be installed properly. To avoid this problem, 32 bit MySQL has to be installed first and eventually there are 2 versions of MySQL just for rails… I love both rails and mac very much, but hate this issue. I am looking forward to 2.3 anyway. Thanks.
Yay. This is great news
Cool! Because my Rails 2.2.2 doesn’t want to start with Ruby 1.9.1, so i hope it will be fixed ))
Most excellent job! I’m not sure how you implemented nested forms (‘cause I’m a lazy bum) but I just tried them with a many-to-many relationship, and realized that they didn’t work. Is there a quick way to get that working, or is that going to make it into the final release? Cheerio! Berns
Looking forward, 2.3 seems exciting …
hope nothing breaks .. after upgrading
Cheers Piyush/Jon
Love is all around :-)