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.

Posted in Releases | 60 comments

Comments

  1. Piotr Andrzej Nowak on 09 Nov 22:53:

    Brawo, can’t wait to try it out !

  2. Dan on 09 Nov 23:25:

    Sweet, Inkling was only off a day.

  3. robzon on 09 Nov 23:53:

    That’s great. I’m looking forward to testing Rails 2.0 in some real applications. Looks very promising.

  4. Koz on 10 Nov 00:30:

    @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 :)

  5. Piotr on 10 Nov 00:58:

    I haven’t learned to use the previous version yet! Crap.

  6. malagant on 10 Nov 01:26:

    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”.

  7. Daniel Fischer on 10 Nov 01:33:

    Looking good! Luckily we’ve been developing on edge for over three months, can’t wait to feel “official” though!

  8. James Harrison on 10 Nov 02:21:

    Excellent stuff! I’ll be doing some testing on my apps and bugreporting where needed.

  9. Philipp Schmid on 10 Nov 02:34:

    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.

  10. Jeremy Kemper on 10 Nov 02:38:

    malagant, Ruby 1.9 is still a moving target, but as it matures, Rails will be right there with it.

  11. Justin on 10 Nov 02:55:

    I love REST. Very exciting stuff.

  12. Tim on 10 Nov 03:12:

    Any word on when Ruby 2 / YARV will be released?

    Is that also planned for this Christmas?

  13. Robert on 10 Nov 03:33:

    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.

  14. Phil Thompson on 10 Nov 04:16:

    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!

  15. Peter Armstrong on 10 Nov 05:25:

    Congratulations! (Also, thank you for changing the gem version number to be higher than 1.2.5—it’s much simpler!)

  16. Dejan Dimic on 10 Nov 11:49:

    YES!!!

  17. Kristof on 10 Nov 16:42:

    New book?

  18. face on 10 Nov 18:31:

    Thanks Rails Contributers! You All Rock!

    A couple weeks ago I got edge mephisto working on edge rails…thanks to Rob and this thread.

    This this morning:

    rake rails:freeze:edge TAG=rel_2-0-0_RC1; svn export http://dev.rubyonrails.org/svn/rails/trunk/actionwebservice/ vendor/rails/actionwebservice 
    and I am now live with 2.0 RC1 and edge rails.

    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)

  19. Gaius on 10 Nov 18:40:

    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!

  20. Phil Nelson on 10 Nov 23:35:

    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.

  21. js0n on 11 Nov 13:26:

    Looking forward to a new book ;)

  22. Jesper Rønn-Jensen on 11 Nov 18:20:

    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…

  23. Jesper Rønn-Jensen on 11 Nov 20:15:

    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

  24. murphy on 12 Nov 07:26:

    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

  25. Justin on 12 Nov 18:04:

    Is there a reason that ActiveResource is not bundled in with rails? It’s slightly irritating that you have to install that plugin separately.

  26. bbbb on 12 Nov 18:18:

    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)

  27. Jeremy Kemper on 12 Nov 20:21:

    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.

  28. Grzegorz Derebecki on 12 Nov 23:44:

    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

  29. Jeremy Kemper on 13 Nov 00:57:

    Grzegorz: fixed; thanks for the report!

  30. Chris on 13 Nov 01:26:

    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!

  31. newbye on 13 Nov 01:40:

    Great work,cool cool cool!

  32. Hery on 13 Nov 09:17:

    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

  33. murphy on 13 Nov 12:34:

    would you please stop posting error callchains here? laughs oh my…

  34. Mike on 13 Nov 17:38:

    When the new Dave Thomas book?

  35. joe lackner on 13 Nov 22:44:

    i’m eager to wet my palette!

  36. theJareCare on 14 Nov 11:05:

    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

  37. Skyblaze on 14 Nov 15:20:

    we all want a new edition (that covers rails 2) of AWDWR :)

  38. Evan on 14 Nov 23:42:

    can’t wait for 2.0 ~

    when will it be?

  39. Fritten on 15 Nov 21:41:

    That’s great. I’m looking forward to testing Rails 2.0 in some real applications. Looks very promising.

  40. diego on 16 Nov 15:47:

    a new book would be really nice :)

  41. stojaki reklamowe on 16 Nov 19:48:

    can’t wait!

  42. Grumbo on 18 Nov 10:24:

    I hope it will be available soon.

  43. PiotR on 18 Nov 11:56:

    I hope for a fast release and i cant wait.

  44. Lenart on 18 Nov 21:51:

    Can’t wait to try it out and especially to see the final release of Rails 2.0. Keep it up guys!

  45. Klassik on 19 Nov 17:03:

    I love rails. The best thing i have ever seen

  46. pnowak on 19 Nov 17:40:

    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 ?

  47. RW on 19 Nov 17:47:

    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.

  48. beginner on 19 Nov 19:24:

    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

  49. Jeremy Kemper on 19 Nov 20:28:

    beginner, you want @post.save not @post.create.

    Everyone, again, please take support questions, bug reports, and further commentary to the mailing list. Thanks.

  50. tex on 20 Nov 11:32:

    I hope it’s working better toegether with Debian. That’s still a bit problematic.

  51. push^ on 22 Nov 02:28:

    Any details on a new book?

  52. Tom on 22 Nov 07:37:

    So i’m looking forward to a new book ;)

  53. Jo on 22 Nov 20:45:

    Has anyone some details abaout a new book?

  54. Robert Nasiadek on 23 Nov 01:41:

    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…

  55. Jim on 23 Nov 10:33:

    Can’t wait for the new book – I know it’s coming sooner or later. Keep up the good work guys.

  56. Skyblaze on 23 Nov 13:16:

    i asked mr thomas and he said that at the moment he doesn’t know if it will come out a new AWDVR

  57. JohnnyBusca on 26 Nov 09:47:

    1.2.6 on my machine.. beefy! Keep up the good work.

  58. credit on 27 Nov 07:01:

    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

  59. credit on 27 Nov 07:01:

    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

  60. credit on 27 Nov 07:01:

    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