Rails 2.0: Release Candidate 1
Posted by David November 09, 2007 @ 10:43 PM
We’ve been taking our sweet time, but now it really is almost there. We’ve just pushed new beta gems to gems.rubyonrails.org and created the rel_2-0-0_RC1 tag. So this is shaping up to be the last chance to raise concerns for Rails 2.0 before we go final in oh-so-shortly.
So please give it a spin. First, upgrade to 1.2.5 if you haven’t already. Fix all the deprecation warnings you see. Then try to jump on Rails 2.0 and see if it runs. If it doesn’t, and you think it’s not because of something you did wrong, please create a ticket.
We’re going to be running this release candidate phase over the next couple of weeks, give or take depending on how many issues are raised.
You can read all about why you should actually care about Rails 2.0 in the original preview release announcement.
The gem version for this release is 1.99.0.

Brawo, can’t wait to try it out !
Sweet, Inkling was only off a day.
That’s great. I’m looking forward to testing Rails 2.0 in some real applications. Looks very promising.
@robzon: you should test your applications against the release candidates. That’s the best way for us to be sure we’ve caught all the bugs :)
I haven’t learned to use the previous version yet! Crap.
Cool, so the final version should be around at X-Mas ;-)
Will it seamlessly work with Ruby 1.9? I had some problems running my app in combination with Rails Edge and Ruby “Edge”.
Looking good! Luckily we’ve been developing on edge for over three months, can’t wait to feel “official” though!
Excellent stuff! I’ll be doing some testing on my apps and bugreporting where needed.
We’ve been running Rails edge in production for two months now and it was a pleasant experience. Edge already seems to be very stable, at least on our site.
malagant, Ruby 1.9 is still a moving target, but as it matures, Rails will be right there with it.
I love REST. Very exciting stuff.
Any word on when Ruby 2 / YARV will be released?
Is that also planned for this Christmas?
I’m looking forward to trying out my existing apps on this ASAP. The feature set is interesting – the multiview and exception handling changes the most immediately so.
Already using Edge on a shortly-to-be-released product. Lovin’ REST. It makes controller creation much more focused.
Will update shortly.
Thanks to everyone who helped. Nearly there!
Congratulations! (Also, thank you for changing the gem version number to be higher than 1.2.5—it’s much simpler!)
YES!!!
New book?
Thanks Rails Contributers! You All Rock!
and I am now live with 2.0 RC1 and edge rails.A couple weeks ago I got edge mephisto working on edge rails…thanks to Rob and this thread.
This this morning:
Thanks Everyone!
(p.s. If anyone is interested in the proof http://myutil.com and http://honuahope.com/blog are a mephisto multi-site running on Rails RC1)
I have a request for Rails 2, and I don’t think it’s too big. I’d like to be able to add a prefix to :id in my resource routes. That is, instead of
map.resources :people
generating
/people/:id/edit
it would generate
/people/:person_id/edit
That way, I could use the same helper method to look up people for all my controllers. As it is, ”:id” means different things to different controllers, or even to the same controller from different routes!
Anyone know if there is an updated version of AWDwR (I guess it will be V3) coming out to coincide with Rails 2 ?
I was on the “beta book” program for V2 and would intend to do the same next time.
Looking forward to a new book ;)
Upgrading from PR1 to RC1 gives me the following crash when starting webserver.
Any idea what is missing?
PS. (i have run the rake task twice to make sure it got actionwebservice as well: rake rails:freeze:gems TAG=rel_2-0-0_RC1 )
====stack trace below (same with mongrel and webrick)====
$ ruby script\server webrick => Booting WEBrick… ./script/../config/../vendor/rails/railties/lib/initializer.rb:334:in `send’: undefined method `session=’ for ActionController::Base:Class (NoMethodError) from ./script/../config/../vendor/rails/railties/lib/initializer.rb:334:in `initialize_framework_settings’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:333:in `each’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:333:in `initialize_framework_settings’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:330:in `each’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:330:in `initialize_framework_settings’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:100:in `process’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:47:in `send’ from ./script/../config/../vendor/rails/railties/lib/initializer.rb:47:in `run’ ... 12 levels…
Rails Core group on Google Talk is a much better place to investigate the bug mentioned above.
Read more ” Upgrade from PR1=> RC1: Windows crash”: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/374fdbb2ae445ca8/f5b1e9e865979b76#f5b1e9e865979b76
Tim: No word about Ruby 2. YARV is Ruby 1.9, and it is planned to be released on Chrismas as 1.9.1 – including Unicode support, VM, and more shiny things. Try http://eigenclass.org/hiki/Changes+in+Ruby+1.9
Is there a reason that ActiveResource is not bundled in with rails? It’s slightly irritating that you have to install that plugin separately.
What wrong
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.99.0/lib/active_record/base.rb:1334:in `method_missing’: undefined method `whiny_protected_attributes=’ for ActiveRecord::Base:Class (NoMethodError)
Justin, Active Resource is bundled with Rails 2.
bbbb, delete the whiny_protected_attributes setting from your environement. It was in the preview release but is not in the release candidate, so if you generated an app with the preview and are now upgrading it, you’ll need to remove that line. Thanks for mentioning it.
i can’t run Rails 2.0 rc1 on Windows using Apache 2.0 + FCGI
i get error like:
D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:136:in `trap’: unsupported signal SIGUSR2 (ArgumentError) from D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:136:in `install_signal_handler’ from D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:130:in `install_signal_handlers’ from D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:130:in `each’ from D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:130:in `install_signal_handlers’ from D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:40:in `initialize’ from D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:24:in `new’ from D:/server/ruby/lib/ruby/gems/1.8/gems/rails-1.99.0/lib/fcgi_handler.rb:24:in `process!’ from public/dispatch.fcgi:24
Grzegorz: fixed; thanks for the report!
We’re live on Rails 2.0 RC1 – looks good so far. Rob spent a little while getting it working (and posted a few patches to mephisto in the process) but now it’s up and running then it all seems to be working fine. Well done to DHH and the core team for all their hard work!
Great work,cool cool cool!
Hello !
When I run ‘require builder/css’, it could not find it. There is a css.rb in the library : /usr/lib/ruby/gems/1.8/gems/activesupport-1.99.0/lib/active_support/vendor/builder-2.1.2/builder/css.rb How can i use this and does Rails 2.0 have a CSS Builder template i.e *.css.builder or do we must use Erb for this *.css.erb
Thanks a lot Hery.
Here is the log for the ‘builder/css’ issue :
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load—builder/css (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’ from /usr/lib/ruby/gems/1.8/gems/activesupport-1.99.0/lib/active_support/dependencies.rb:496:in `require’ from /usr/lib/ruby/gems/1.8/gems/activesupport-1.99.0/lib/active_support/dependencies.rb:342:in `new_constants_in’ from /usr/lib/ruby/gems/1.8/gems/activesupport-1.99.0/lib/active_support/dependencies.rb:496:in `require’ from /home/hery/workspace/rails_royce/config/initializers/css_builder.rb:1 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.99.0/lib/active_support/dependencies.rb:489:in `load’ from /usr/lib/ruby/gems/1.8/gems/activesupport-1.99.0/lib/active_support/dependencies.rb:489:in `load’ from /usr/lib/ruby/gems/1.8/gems/activesupport-1.99.0/lib/active_support/dependencies.rb:342:in `new_constants_in’ ... 12 levels… from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules’ from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup’ from /usr/lib/ruby/1.8/irb.rb:54:in `start’ from /usr/bin/irb:13 hery@server1:~/workspace/rails_royce$ gem remove actionwebservice ERROR: While executing gem … (RuntimeError) Unknown command remove
would you please stop posting error callchains here? laughs oh my…
When the new Dave Thomas book?
i’m eager to wet my palette!
37 sigs,
can’t wait for 2.0!
if you need help with active record stop
on by to
http://giantrobots.thoughtbot.com/2007/11/13/the-contest
we’re giving away free copies of our new
book.
- jc
we all want a new edition (that covers rails 2) of AWDWR :)
can’t wait for 2.0 ~
when will it be?
That’s great. I’m looking forward to testing Rails 2.0 in some real applications. Looks very promising.
a new book would be really nice :)
can’t wait!
I hope it will be available soon.
I hope for a fast release and i cant wait.
Can’t wait to try it out and especially to see the final release of Rails 2.0. Keep it up guys!
I love rails. The best thing i have ever seen
Have you ever heard about Grails ? http://grails.org/
Its RoR written in Java and Groovy, (Java scripting language)
Looks like it performs much better than RoR in almost every aspect. Im seriously considering switch to Grails now. http://docs.codehaus.org/display/GRAILS/Grails+vs+Rails+Benchmark
i was java developer who switched to ruby and rails some time ago, but now im considering switching back..
if you can, please give me reasons not to do that (i dont like to learn new scripting language again..)
what do you think about Grails anyway ?
How about an Errata & Commentary web page referencing AWDwR V2 pointing out the differences between what AWDwR V2 describes and Rails 2.0?
It would be like: “page 32, second paragraph: The method described here is deprecated in favor of XYZ, described at http://www.abc.lan/XYZ” etc.
Does anyone know what’s wrong with this?
NoMethodError (private method `create’ called for #<post:0xb75caa78>): /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.99.0/lib/active_record/attribute_methods.rb:205:in `method_missing’ /app/controllers/posts_controller.rb:93:in `create’
This error is caused by: @post = Post.new do |post| post.text = params[:text] end @post.create
beginner, you want @post.save not @post.create.
Everyone, again, please take support questions, bug reports, and further commentary to the mailing list. Thanks.
I hope it’s working better toegether with Debian. That’s still a bit problematic.
Any details on a new book?
So i’m looking forward to a new book ;)
Has anyone some details abaout a new book?
Anyone tried using fixtures with nested models? When I create a new model (User::Role in my case) I get user_roles.yml file and an empty user directory in my fixtures dir. And when I try to use user_roles( :admin ) in my unit tests I get an error saying UserRole class doesn’t exist…
Can’t wait for the new book – I know it’s coming sooner or later. Keep up the good work guys.
i asked mr thomas and he said that at the moment he doesn’t know if it will come out a new AWDVR
1.2.6 on my machine.. beefy! Keep up the good work.
credit [url=http://ps.woot.cc/HelpOnActions/AttachFile?action=AttachFile&do=get&target=icon.htm#99227879]credit[/url] http://ps.woot.cc/HelpOnActions/AttachFile?action=AttachFile&do=get&target=icon.htm 1085569134
credit [url=http://ps.woot.cc/HelpOnActions/AttachFile?action=AttachFile&do=get&target=icon.htm#99227879]credit[/url] http://ps.woot.cc/HelpOnActions/AttachFile?action=AttachFile&do=get&target=icon.htm 1085569134
credit [url=http://ps.woot.cc/HelpOnActions/AttachFile?action=AttachFile&do=get&target=icon.htm#99227879]credit[/url] http://ps.woot.cc/HelpOnActions/AttachFile?action=AttachFile&do=get&target=icon.htm 1085569134