Rails 1.1: Release Candidate 1 available
Posted by David March 22, 2006 @ 01:35 AM
It’s been roughly three months since the release of the big one-oh. That’s obviously an eternity in Rails time, so its about high time we’re getting ready for the release for 1.1. And boy, is this an exciting upgrade!
I do believe this is the biggest upgrade to Rails we’ve ever done. We have recorded about 500 fixes, tweaks, and new features in the changelogs. That’s a lot and that’s just counting major new features like RJS as one.
So with all these goodies, we want to make sure we launch without any obvious blunders or backwards compatibility breaking changes. This is why we’re doing a release candidate and why we need your help to test it.
Rails 1.1 is supposed to be just fully backwards compatible with 1.0, but we did change just a couple of defaults, see CHANGED DEFAULT notes in the changelogs. That means we want to test Rails 1.1 with as many 1.0 applications as possible.
To install the release candidate gems, you just need to do:
gem install rake gem install rails --source http://gems.rubyonrails.org
Or you can just install the new Rake gem (Rails 1.1 depends on Rake 0.7) and then call rake freeze_edge. That’ll pull the latest Rails down from the Subversion repository and bind just that one application to it.
Or you can set svn:externals on vendor/ to be against http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-0_RC1, if you want to pull it in through Subversion automatically.
Lots of options, no excuses. We really need your help to make sure the final release is as solid as Rails 1.0 was. And so we don’t need 1.1.1 two days later.
Once you have the latest Rails installed, you can do rake rails:update to get the latest scripts and the latest version of Prototype and script.aculo.us installed in public/javascripts. That’s about all the upgrading you need to do to existing applications.
Do note, though, that all plugins may not be upgraded to be compatible with Rails 1.1. Or you may indeed just have an old version of a plugin that has been updated. Keep an eye out for that.
If you’re wondering why to even bother with Rails 1.1, Scott Raymond currently has the best play-by-play overview of what’s new. We’ll be adding to that with more walkthroughs and hopefully movies around release time.
If you need more documentation, I strongly encourage you to pick up Chad Fowler’s Rails Recipe book. It’s currently out in its 3rd beta release and includes a bunch of great recipes on the new 1.1 features. Including RJS, polymorphic associations (and how to do better tagging with them), join models, integration testing, and more. You can get it as a PDF right now for $21.50.
So help us help you. Test Rails 1.1 with your existing applications. Try building new stuff with it. And let us know if something breaks in the process. We will be taking care of all heinous bugs before release. Thank you all!

Nice!
Awesome.
I’ve been eagerly awaiting for the polymorphic associations.
Honk that choo choo!
Wow!
Congrats and thanks to everyone in core team.
Yay!
Is there a URL for RTFM’ing for 1.1 RC1? It doesn’t appear api.rubyonrails.com nor edgedocs.planetargon.org are 1.1.
I updated to the latest version by using the command ‘gem install rails—source http://gems.rubyonrails.org’.
I noticed that in the announcement on the DL, it said the changelist number was 4010, but when I installed it looks like I pulled down 4008: ‘Successfully installed rails-1.0.0.4008’
Did I not get RoR 1.1 RC1? So far, no problems either way.
rails-1.0.0.4008 is the RC1, 4010 is just tagging it.
A couple things.
First, `rake freeze_edge` only gave me the lib dir of rails, so `rake rails:update` didn’t have any javascripts/scripts to update my app with.
Second, Typo is pretty broken under 1.1RC1, and I’m not familiar enough with some of this stuff to know why. Once I installed the upload_progress plugin (and fiddled environment.rb to require it instead of enabling the previously-built-in upload progress), I get nice errors about the namespaces of my components – when trying to define Plugins::Textfilters::AmazonController I get told Plugins doesn’t exist. Yet in Rails 1.0 it does, and according to component docs it’s supposed to. I’m really not sure what to do about this. I tried removing Plugins:: from everything with search&replace, and got an interesting error that indicated that the line Sidebar.find_all_visible(...) actually tried to run find_all_visible on a completely different class. So basically I’m really confused. Perhaps Tobias could try getting Typo running with 1.1RC1? ;)
Models in modules are still broken and that seems like a pretty big showstopper to me; but you know that, it’s on the Final Drive list.
Yay!!!
when i run ruby script\runner i get superclass mismatch for class OrderedOptions (TypeError)
i used rake freeze_edge
i know its off topic, but how are people hosting rails in production? afaik fastcgi is deprecated and webrick isn’t suitable for large scale deployments.
Anyone know how 37signals host their stuff?
I’m running Edge on my new discussion service Talk.org which I just launched. So far no real issues.
I am using several of the new features including rjs, which is worth the upgrade alone.
I’m running Edge on my new discussion service Talk.org which I just launched. So far no real issues.
I am using several of the new features including rjs, which is worth the upgrade alone.
Good job guys. Appreciate the hard work.
To view the CHANGELOG:
http://dev.rubyonrails.org/svn/rails/trunk/railties/CHANGELOG
Lots of nice progression, great to see. Definitely hook up the namespaces for modules, though!
Weehee!
I have rails 1.0 installed. After updating rake I tried the following:
rails editor cd editor rake freeze_edge script/server
which produced an error when it couldn’t find the file:
to copy into config/lighttpd.conf
Problem:
The freeze_edge task in framework.rake only checks out the lib directories in each framework but vendor/rails/railties/lib/commands/servers/lighttpd.rb is looking for vendor/rails/railties/configs/lighttpd.conf.
I patched my Rails 1.0 rake freeze_edge task (rails-1.0.0/lib/tasks/framework.rake): by inserting the following line after line 46:
system “svn export http://dev.rubyonrails.org/svn/rails/trunk/railties/configs vendor/rails/railties/configs #{revision_switch}” end
After rm -rf vendor/rails/ and rake freeze_edge my script/server worked.
graham: I’m using SCGI for my eproduction servers…
If you’re getting a nasty namespace error with rake 0.7, you may have multiple rakes installed.
Starting console in a fresh 1.1 app results in an error (windows XP, ruby 1.8.2, rake version 0.7.0, gem version 0.8.10, actionmailer (1.1.5.4008, 1.1.5, 1.1.4, 1.1.3), actionpack (1.11.2.4008, 1.11.2, 1.11.1, 1.11.0), actionwebservice (1.0.0.4008, 1.0.0, 0.9.4, 0.9.3), activerecord (1.13.2.4008, 1.13.2, 1.13.1, 1.13.0) activesupport (1.2.5.4008, 1.2.5, 1.2.4, 1.2.3)):
C:\_files\_dl\dev\test11>ruby script\console Loading development environment. c:/_files/_dl/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts’: undefined metho d `upcase’ for nil:NilClass (NoMethodError) from c:/_files/_dl/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup’ from c:/_files/_dl/ruby/lib/ruby/1.8/irb.rb:54:in `start’ from c:/_files/_dl/ruby/bin/irb:13
Any suggestions?
Thank you!
After loading 1.1, my app no longer starts. Here are the error messages:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_support/depen dencies.rb:125:in `const_missing’: uninitialized constant LoadingModule (NameError) from ./script/../config/environment.rb:81 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire__’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire’ from script/server:44
Please use http://dev.rubyonrails.org for bug reports.
I have just updated rails and added polymorphic associations but they lookk they are not working. I’m following the recipe 17 of “Rails Recipes” and I’m getting an “Unknown key(s): as” error. The associations work properly on the console. The problem occurs when I’m listing the items… perhaps the problem is pagination. Is this a bug or what should I do?
Here is the log: C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys’ C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:438:in `has_one_without_reflection’ (eval):5:in `has_one’ #{RAILS_ROOT}/app/models/person.rb:4 #{RAILS_ROOT}/app/controllers/company_controller.rb:7:in `list’ -e:3
I’m getting errors after upgrade similar to posts above—is there an easy way to roll an app back to 1.0?
David, please add a note next to this blog’s comment box:
“Your comment will appear after a short delay. Please only submit it once.”
and maybe a message on top of the page upon submit:
“Your comment has been received and will appear on this page in a few minutes.”
Thank you.
Thanks David! Looks like there’s enough changes to justify a ‘1.5’ or ‘2.0’.
I hope we have smaller & more frequent releases in the future. Particularly bugfix-only releases.
Keep up the great work!
It is Great!
It is Great!
What am I doing wrong?
Huh? What happened to 1.1?!
Nice!
Nice!
I successfully upgraded to Rails 1.1., but now when I point my browser to localhost:3000, I get a the following:
Routing Error
Recognition failed for ”/rails_info/properties”
What’s the best fix for this?
Did anybody respond to the issue that Thomas described? I’m having the same problem with my applicactions. I have several client apps that won’t start.
Hi,
I have the same error as 24).
Very unprofessional.
Do you know QA ?
Such large screwups doesn’t happen with PHP.
And PHP works flawlessly with IIS without thirdparty plugins(URL rewriting)
I have to think twice to use Rails in a professional project.
For amateur student project it’s fine as those screwups doesn’t matter there.
cya
I am having the same issues as Thomas as well. Some feedback as to why this is happening would certainly be appreciated.
Hi, I See on No. 35 like mine but I can work-it out :-),
I run rubyonrail on fedora core 5 installation, and it already have ruby 1.8.4 on it, but some of the files in ruby distribution are missing in folder ”/usr/lib/ruby/1.8” like, rdoc and irb, you can compare it with instantrails distribution on that folder or you can install ruby 1.8.4 from the source
Cheerrrssssss…... rails rock!
Hi, updated all my apps and working fine here. Thank you.
I followed what another site said and got my project working again:
You can re-run the (new version of the) “rails” command on your project (“rails .” when your working directory is your RAILS_ROOT). Allow it to overwrite any file you haven’t customized, and that should fix it.
From http://www.forbiddenweb.org/viewtopic.php?id=86290
I followed what another site said and got my project working again:
You can re-run the (new version of the) “rails” command on your project (“rails .” when your working directory is your RAILS_ROOT). Allow it to overwrite any file you haven’t customized, and that should fix it.
From http://www.forbiddenweb.org/viewtopic.php?id=86290
ruby script\console doesn’t seem to work anymore.
I get:
Loading development environment. c:/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts’: undefined method `upcase’ for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup’ from c:/ruby/lib/ruby/1.8/irb.rb:54:in `start’ from c:/ruby/bin/irb:13
Kind of ironic that Rails 1.1.1 came out less than a week later than 1.1.0. Not that I mind – release early, and often! =)