Rails 1.1: RJS, Active Record++, respond_to, integration tests, and 500 other things!
Posted by David March 28, 2006 @ 06:02 AM
The biggest upgrade in Rails history has finally arrived. Rails 1.1 boasts more than 500 fixes, tweaks, and features from more than 100 contributors. Most of the updates just make everyday life a little smoother, a little rounder, and a little more joyful.
But of course we also have an impressive line of blockbuster features that will make you an even happier programmer. Especially if you’re into Ajax, web services, and strong domain models — and who isn’t these funky days?
The star of our one-one show is RJS: JavaScript written in Ruby. It’s the perfect antidote for your JavaScript blues. The way to get all Ajaxified without leaving the comfort of your beloved Ruby. It’s the brainchild of JavaScript and Ruby mastermind Sam Stephenson and an ode to the dynamic nature of Ruby.
Here goes a few sample rjs calls:
# First buy appears the cart, subsequent buys highlight it
page[:cart].visual_effect(@cart.size == 1 ? :appear : :highlight)
# Replace the cart with a refresh rendering of the cart partial
page[:cart].replace_html :partial => "cart"
# Highlight all the DOM elements of class "product"
page.select(".product").each do |element|
element.visual_effect :highlight
end
# Call the custom JavaScript class/method AddressBook.cancel()
page.address_book.cancel
# 4 seconds after rendering, set the font-style of all company
# spans inside tds to normal
page.delay(4) do
page.select("td span.company").each do |column|
column.set_style :fontStyle => "normal"
end
end
And that’s just a tiny taste of what RJS is capable of. It takes the Ajax on Rails experience far above and beyond the great support we already had. Bringing us even closer to the goal of “as easy as not to”. Read more about RJS in the docs or in Cody Fauser’s tutorial about element and collection proxies and his introduction to RJS (it shouldn’t surprise you that Cody is writing about book about RJS for O’Reilly).
But its not just the view we’re giving some tender love, oh no. Active Record has been blessed with bottomless eager loading, polymorphic associations, join models, to_xml, calculations, and database adapters for Sybase and OpenBase. It’s a huge upgrade and made possible through the fantastic work of Rick Olson (who was recently accepted into Rails Core, not a minute too soon!) and Anna Chan. Let’s dig into three of the top features:
Bottomless eager loading gives you the power of pulling back a multi-level object graph in a single JOIN-powered SQL query. Example:
# Single database query:
companies = Company.find(:all, :include => {
:groups => { :members=> { :favorites } } })
# No database query caused:
companies[0].groups[0].members[0].favorites[0].name
You can mix’n’match too. Using both multi-level fetches and first-level ones in the same call:
# Just 1 database query for all of this:
authors = Author.find(:all, :include => [
{ :posts => :comments }, :categorizations ])
authors[0].posts[0].comments[0].body # => "Rock on Rails!"
authors[0].categorizations[0].name # => "Less software"
Polymorphic associations and join models give you access to much richer domains where many-to-many relationships are exposed as real models. Say Authorship between Book and Author:
class Author < ActiveRecord::Base
has_many :authorships
has_many :books, :through => :authorships
end
class Book < ActiveRecord::Base
has_many :authorships
has_many :authors, :through => :authorships
end
class Authorship < ActiveRecord::Base
belongs_to :author
belongs_to :book
end
...or addresses that can belong to both people and companies:
class Address < ActiveRecord::Base
belongs_to :addressable, :polymorphic => true
end
class Person < ActiveRecord::Base
has_one :address, :as => :addressable
end
class Company < ActiveRecord::Base
has_one :address, :as => :addressable
end
Now let’s have a look at the new respond_to feature of Action Controller that makes it much easier to launch your application with both Ajax, non-Ajax, and API access through the same actions. By inspecting the Accept header, we can do clever stuff like:
class WeblogController < ActionController::Base
def create
@post = Post.create(params[:post])
respond_to do |type|
type.js { render } # renders create.rjs
type.html { redirect_to :action => "index" }
type.xml do
headers["Location"] = post_url(:id => @post)
render(:nothing, :status => "201 Created")
end
end
end
end
The recently launched API for Basecamp uses this approach to stay DRY and keep Jamis happy. So happy that he wrote a great guide on how to use respond_to
Speaking of Jamis, he also added the third layer of testing to Rails: Integration tests. They allow you to faithfully simulate users accessing multiple controllers and even gives you the power to simulate multiple concurrent users. It can really give you a whole new level of confidence in your application. The 37signals team used it heavily in Campfire from where it was later extracted into Rails. See Jamis’ great guide to integration testing for more.
These highlighted features are just the tip of the iceberg. Scott Raymond has done a great job trying to keep a tab on all the changes, see his What new in Rails 1.1 for a more complete, if brief, walk-through of all the goodies. And as always, the changelogs has the complete step-by-step story for those of you who desire to know it all.
And as mentioned before, Chad Fowler’s excellent Rails Recipes has in-depth howtos on a lot of the new features. If you desire some packaged documentation, this is the book to pick up.
Upgrading from 1.0
So with such a massive update, upgrading is going to be hell, right? Wrong! We’ve gone to painstaking lengths to ensure that upgrading from 1.0 will be as easy as pie. Here goes the steps:
- Update to Rails 1.1:
gem install rails --include-dependencies - Update JavaScripts for RJS:
rake rails:update
That’s pretty much it! If you’re seeing any nastiness after upgrading, it’s most likely due to a plugin that’s incompatible with 1.1. See if the author hasn’t updated it and otherwise force him to do so.
If you’re on Ruby 1.8.2 with Windows, though, you’ll want to upgrade to the 1.8.4 (or the script/console will fail). And even if you’re on another platform, it’s a good idea to upgrade to Ruby 1.8.4. We still support 1.8.2, but might not in the next major release. So may as well get the upgrading with over with now.

Congrats! First reply!
I’ll be updating now…
Very nice job, guys!!!
Congratulations.
Great work!!!
I’ll be launching a ecommerce site on rails this week.
Really looking forward to a small rails 1.1.1 bugfix-only release that takes care of a few defects found on these:
I thought rails was ‘all hype’ until I tried it out for myself—well deserving of all the news and attention!
Congratulations!
I love the RJS Template system and the new integration testing is awesome.
Jamis’ articles on Integration Testing was one of the coolest thing I had come to know about Rails 1.1.
Great going congratulations once again!
You guys should update the main page to say 1.1 on the arrow instead of 1.0 ;)
Looks good guys.
In other news from today, it looks like JRuby is almost at the point to having Ruby on Rails working.
http://jruby.sourceforge.net/
It looks like we might actually have a fast implementation of Ruby sometime soon!
RWA: None of these tickets were critical for 1.1, so don’t hold your breath for a 1.1.1.
@Sean
It appears as though JRuby is slower than Ruby itself.
See the article below for more information.
http://headius.blogspot.com/2006/03/jruby-progress-updates-jruby-on-rails.html
I only dream about a Ruby interpreter/VM that can execute Ruby at speeds that PHP and Perl can achieve (which really isn’t “that” fast but is an order of magnitude faster than Ruby).
Congrats
Great to see 1.1 released, now I have to catch up with these new features on my current app. Big thanks to the Rails Community and Developers for making this one happen!
Awesome…
Congrats
heh…
just deployed an app running edge rails this evening at 9pm CET…just missed the boat by a couple of hours…
Hello World!
Hello World!
For some reason, when I do the gem install rails—inc… command, it just says successfully installed rails 1.0.0 ?
Good job!
As for the claim that Ruby is an order of magnitude slower than PHP or Perl, I’ve not experienced such. And this site seems to show it aint so:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=ruby&lang2=php
Also, a Ruby interpreter, in Java. Um, why?
Way to go. some nice features added imo
Just curious to know—how have Windows folks been working around the 1.8.4 issue so far? The one-click installer for 1.8.4 is still not complete. Is it complete enough?
Gah! “gem install rails” just picked up 1.1 and of course, typo wants rails 1.0. Just my luck tonight. :-)
Congratulations, guys…
The new stuff looks GREAT!
Congratulations!
Gratz!
Updating now!
Congrat for the great Job well done for David and the Core team and community!
Viva Ruby on Rails!
Brice
So.. How do you upgrade an existing rails project to 1.1?
So.. How do you upgrade an existing rails project to 1.1?
And I was only wishing for the implementation of the Effect.Toggle function… :X
Rails ftw!
Is seems that RoR crossed the chasm. Congratulations David and whole team! BTW is there any way to support Ruby/VM project? Ruby/VM on Rails might kill Java web development in just 3 years ;-)
D’oh, I was hoping this wasn’t going to be released quite yet. Unless you’ve done some behind-the-scenes work since RC 1, Typo is screwed because Rails 1.1 seems to have certain issues with components (at least, the way we use them in Typo). Hopefully we’ll be able to figure it out without too much work…
What’s to come next ? 1.1.1, 1.2 or 2.0 ?
Any hints on what will be new ?
Good job! Time to dive in to some text again.
Congrats!!! Didn’t that deserve a major release number? 2.0? ;)
Thanks folks for this release.Working on a project now will be able to update my sandbox only after that to test this release..
now I am a fulltime Ruby/Rails developer for my company
updating my rails for checking the latest features
got some problems while updating “metadata does not exist”, could be due to Windows XP
trying using “gem update” instead
i did not any info about this version being stable, so my current version will continue to be on rails 1.0 until my testing of 1.1 are over
Another major milestone, is the upgraded Rake, to 0.7 which includes namespace support.
If you see the new rake tasks, by typing “rake -T” in your Rails directory, you will notice:they:are:namespaced.
can anyone say screen casts??? i love watching those things, its the best way to get a feel for the new features… ScreenPodCast ??? OMG genius
So funny… All these people posting twice… including my first double-post. :) That’s the proof of an intuitive user interface :p.
Happy Rails 1.1! Its been the best programming journey and will continue to be…
Thanks to the very least!
Rizwan
Am I the only one getting this message in my XP install?
$rake rails:update
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Program Files/ruby-1.8.4/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1635:in `load_rakefile’
(See full trace by running task with—trace)
Good work and tnx for every new great feature!
I wanna translate this very helpful article to Japanese. Can I do it on my blog?
For us Typo users, can’t we just run ‘rake freeze_edge REVISION=3303’ (3303 is the version for Rails 1.0) until Typo gets fixed?
Awesome features in 1.1. I almost fell out of my chair a few times reading this post. Gratz Rails team!
Congratulations, Rails 1.1 is amazing!
to_xml – yes , this is nice
At the end of the post, DHH mentions a problem with Ruby 1.8.2 on Windows. There is a workaround that fixes console that doesn’t involve upgrading to 1.8.4 (since some other tools have issue with it). You can replace your irb.bat with the one attached to this bug:
http://dev.rubyonrails.org/ticket/4362
Cool new release! Will try it out with your nice Agile book!
Well done – Congratulations!
No, I get the same error on Mac OS X.
Excellent work, everyone, a huge thank you to everyone involved.
I upgraded my InstantRails / WinXP Pro install and the rails update was fine but the RJS update fails: rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1635:in `load_rakefile’
I did a gem update, and I get the following error:
A couple things:
1. I walked away for 5 minutes after starting the update, and when I came back I had to accept dependency updates. Perhaps the long wait had something to do with it (seems silly but I possibly may have had it happen before).
2. I recently installed Facets, and it has an OrderedHash class. This seems the more likely suspect.
Has anyone run into this, or does anyone have an idea?
Missing rakefile here too, trying to do the RJS update, on Mac OSX…
those having problems with rake rails:update
You should run this command in the directory of your rails application (i.e. the one with the app/components/config/db/... directories)
Finally! Good work, guys.
Screencast ! Screencast! Screencast!
i have found the best way to show things off, and also learn them, is through one of your guys’s’s’s’ Amazoing® screencasts.
Evan,
instead of the one-click installer for windows, use InstantRails…it already has a 1.8.4 tree.
Curt is working on a new method to build the one-click installer, which is why it is behind….
http://rubyforge.org/projects/instantrails/
Brilliant! Works great for me, just upped and everything looks great. I have my Typo install already frozen to 1.0 anyway so no problems there.
I think the RJS update:
rake rails:update
is on a per application basis. Go to your app folder and run the script. It will update the application’s javascript files.
Anyone else get this error?
Upgraded to 1.1. The login_engine doesn’t seem to allow webbrick to start so I presume login_engine isn’t compatible with 1.1. Gave me the excuse I needed to use acts_as_authenticated. Good job folks. Rails is starting to feel mature.
Omg used to hate javascript! Will RJS be my salvation? So say we all.
getting this when I gem install on Suse10:
Attempting local installation of ‘rails’ Local gem file not found: rails*.gem Attempting remote installation of ‘rails’ /usr/lib/ruby/1.8/timeout.rb:42:in `rbuf_fill’: execution expired (Timeout::Error) from /usr/lib/ruby/1.8/net/protocol.rb:196:in `timeout’ from /usr/lib/ruby/1.8/timeout.rb:55:in `timeout’ from /usr/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill’ from /usr/lib/ruby/1.8/net/protocol.rb:160:in `readuntil’ from /usr/lib/ruby/1.8/net/protocol.rb:171:in `readline’ from /usr/lib/ruby/1.8/net/http.rb:1554:in `read_status_line’ from /usr/lib/ruby/1.8/net/http.rb:1538:in `read_new’ from /usr/lib/ruby/1.8/net/http.rb:833:in `request’ ... 17 levels… from /usr/lib/ruby/1.8/rubygems/cmd_manager.rb:94:in `process_args’ from /usr/lib/ruby/1.8/rubygems/cmd_manager.rb:67:in `run’ from /usr/lib/ruby/1.8/rubygems/gem_runner.rb:13:in `run’ from /usr/bin/gem:17
Very nice. I’ll have to flip a coin to see if I upgrade my production Ruby install to 1.8.4 before or after I move up to 1.1 or vice versa. While I’m doing that could someone tell me whatever happened to the “gauges” that DHH alluded to in one of his talks? My day job is system management software so I’ve waiting to see what the core team brings forth on that front.
very nice
“Active Record has been blessed with bottomless eager loading, polymorphic associations, join models”
Whew… Is it just me, or is it getting steamy in here?
:)
“Active Record has been blessed with bottomless eager loading, polymorphic associations, join models”
Whew… Is it just me, or is it getting steamy in here?
:)
This looks pretty damn awesome. Please update api.rubyonrails.org now :)
Jon, the API has been updated.
DGM: Awesome, thanks much.
Congratulations…
The new stuff looks GREAT!! Keep it up…
Congrats! Thanks for your amazing efforts, Rails Core and contributors!
David, I just realised: http://api.rubyonrails.org/ has the 1.0 docs whereas http://api.rubyonrails.com/ has the 1.1 docs. I was looking at the .org and thinking they weren’t up to date.
Which brings me to another issue… it’d be great if Rails just had one address, either .com or .org, and the other just redirected to the preferred one. Sometimes when I’m searching I get the same results from both URLs—it’s probably better from an SEO (and non-confusion) perspective to just stick to one URL.
Kool, Congrats. What is about backward compatibility?
Kool, Congrats. What is about backward compatibility?
Nice! I’ll be a-updating right this minue.
I’m on my RoR project #2 and last project we updated to 1.0 quater way through development. This is awesome!
Good work guys!
I’m a bit …. confused. I find this framework sexy.
Is that wrong? Am I dirty?
I’m a bit …. confused. I find this framework sexy.
Is that wrong? Am I dirty?
Wow, nice job. been waiting for this for a while!
Wow, nice job. been waiting for this for a while!
Congrats guys. Nice work. Keep it up. Are there any performance improvements with 1.1 release?
Wow, nice job. been waiting for this for a while!
anyone else getting this when they try to start the server after the upgrade on mac os x??
homebase:/sites/depoting keith$ ruby script/server => Booting lighttpd (use ‘script/server webrick’ to force WEBrick) => Rails application started on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server (see config/lighttpd.conf for options) Undefined config variable: var.CWD 2006-03-28 22:33:32: (configfile.c.800) source: config/lighttpd.conf line: 8 pos: 43 parser failed somehow near here: + Exiting homebase:/sites/depoting keith$
whats going on?? all i did was do the gem install then built rails then tried to start the server…nada..
You’re running lighttpd and you need to upgrade to the latest version (1.4.11).
absolutely the finest piece of technology I have seen in 10+ years of using Microsuck technology (c#).
Patrick, I’ve had a similar error msg to you, however, mine related to ActiveRecord:
gem install rails—include dependencies
Attempting local installation of ‘rails’
Local gem file not found: rails*.gem
Attempting remote installation of ‘rails’
Updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem … (Errno::EACCES) Permission denied – /usr/local/lib/ruby/gems/1.8/cache/activesupport-1.3.0.gem
Although I have no idea why it’s happening and have no idea how to make it work. Does anyone have any ideas how to help?
Not ActiveRecord, but you get the idea…
that’s all right.
very nice
Hi, I am still getting any ideas?
Thanks.. C:\rails\appdir>rake rails:update—trace (in C:/rails/commit) rake aborted! Don’t know how to build task ‘rails:update’ c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1287:in `[]’ c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:300:in `[]’ c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in `run’ c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in `run’ c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/bin/rake:7 c:/ruby/bin/rake.bat:25
From all of the teasing previews of features coming from so many outlets, its so nice to finally be able to get my hands on everything! Congrats to you and entire community on another fantastic release.
Jackie/Patrick, it looks like you don’t have permissions on the /usr/local folder.
If you’re using OS X, runThat sudo bit will prompt you for your password, which, assuming you are an administrator, will allow to perform the update.
Ryan, many thanks. I guess I must have just taken my brain off the hook in the excitement. Now that you’e mentioned it, it’s so bloody obvious :). Cheers.
Evan,
Even more news. The one click installer for ruby 1.8.4 is now on rubyforge. Also, we are working on updating intantrails to use rails 1.1.
Unfortunatly its not working on Windows machines. You guys should really test it on Windows before releasing it.
rake rails:update is seriously broken, and rake 0.7 is installed.
Got to check it on a linux box later the day.
Everything worked fine on my Windows box.
My first try failed, so I tried again, it failed again so I tried again, it failed so I tried a third time. This time round it worked. What worries me is that I got three different error messages…
jens-powerbook-g4-12:~ jens$ sudo gem install rails—include-dependencies Attempting local installation of ‘rails’ Local gem file not found: rails.gem Attempting remote installation of ‘rails’ Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem … (Errno::EACCES) Permission denied – /usr/local/lib/ruby/gems/1.8/cache/rake-0.7.0.gem
jens-powerbook-g4-12:~ jens$ sudo gem install rails—include-dependencies Password: Attempting local installation of ‘rails’ Local gem file not found: rails.gem Attempting remote installation of ‘rails’ Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem … (TypeError) wrong instance allocation
jens-powerbook-g4-12:~ jens$ sudo gem install rails—include-dependencies Attempting local installation of ‘rails’ Local gem file not found: rails.gem Attempting remote installation of ‘rails’ Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem … (TypeError) can’t convert Fixnum into String
jens-powerbook-g4-12:~ jens$ sudo gem install rails—include-dependencies Attempting local installation of ‘rails’ Local gem file not found: rails.gem Attempting remote installation of ‘rails’ Updating Gem source index for: http://gems.rubyforge.org Successfully installed rails-1.1.0 Successfully installed rake-0.7.0 Successfully installed activesupport-1.3.0 Successfully installed activerecord-1.14.0 Successfully installed actionpack-1.12.0 Successfully installed actionmailer-1.2.0 Successfully installed actionwebservice-1.1.0 Installing RDoc documentation for rake-0.7.0… RDoc failure in lib/rake.rb at or around line 1243 column 10 Before reporting this, could you check that the file you’re documenting compiles cleanly—RDoc is not a full Ruby parser, and gets confused easily if fed invalid programs. The internal error was: ERROR: While executing gem … (TypeError) can’t convert Fixnum into String
jens-powerbook-g4-12:~ jens$ sudo gem install rails—include-dependencies Attempting local installation of ‘rails’ Local gem file not found: rails*.gem Attempting remote installation of ‘rails’ Successfully installed rails-1.1.0
Soo finally it installed but it feels kinda shakey..
Thanks DGM, that’s awesome news. I’ll install it right away.
How to install a fresh RoR 1.1 final and Ruby 1.8.4 on Windows XP?
It seems the changelog files listed at http://api.rubyonrails.org have the wrong change date – 1.1.0 (March 27th, 2005) instead of 1.1.0 (March 27th, 2006).
Martin,
In another day or two, we will have a new release of InstantRails out which includes ruby 1.8.4 and rails 1.1
Me Happy.
Very impressive update indeed
Frank
I got the error: Unknown key(s): through after:
C:\Documents and Settings\ayp>”c:\ruby\bin\ruby.exe” “c:\ruby\bin\gem” install r ails—include-dependencies Attempting local installation of ‘rails’ Local gem file not found: rails*.gem Attempting remote installation of ‘rails’ Updating Gem source index for: http://gems.rubyforge.org Successfully installed rails-1.1.0 Successfully installed activesupport-1.3.0 Successfully installed activerecord-1.14.0 Successfully installed actionpack-1.12.0 Successfully installed actionmailer-1.2.0 Successfully installed actionwebservice-1.1.0 Installing RDoc documentation for activesupport-1.3.0… Installing RDoc documentation for activerecord-1.14.0… Installing RDoc documentation for actionpack-1.12.0… Installing RDoc documentation for actionmailer-1.2.0… Installing RDoc documentation for actionwebservice-1.1.0…
C:\Documents and Settings\ayp>rake rails:update rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1635:in `load_rakefile’ (See full trace by running task with—trace)
Go Rails !!! Congrats !!!
I run rake rails:update from my rails application directory and still get the rake aborted! Don’t know how to build task rails:update error.
I’m on OSX Panther(10.3.9) and Ruby 1.8.4
any ideas?
Ruby is excellent. The new version will bring web 2 closer to the ordinary web developer.
I’m getting this error after upgrading with ruby-1.8.4 one touch installer and following the gem install directions above. Any clues please?
=> Booting WEBrick… D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/infl ector.rb:125:in `underscore’: stack level too deep (SystemStackError) from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active _support/core_ext/string/inflections.rb:29:in `underscore’ from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active _support/dependencies.rb:84:in `const_missing’ from ./script/../config/../vendor/plugins/engines/lib/dependencies_exten sions.rb:28:in `require_or_load’ from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active _support/dependencies.rb:30:in `depend_on’ from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active _support/dependencies.rb:74:in `require_dependency’ from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active _support/dependencies.rb:87:in `const_missing’ from ./script/../config/../vendor/plugins/engines/lib/dependencies_exten sions.rb:28:in `require_or_load’ from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active _support/dependencies.rb:30:in `depend_on’ ... 670 levels… from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/commands/serve r.rb:30 from D:/ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21: in `require’ from D:/ruby-1.8.4/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active _support/dependencies.rb:136:in `require’ from script/server:5
HazMatt,
I’m on OS X Panther, Ruby 1.8.4 myself… Same thing happened to me but everything is cool now.
Run sudo gem install rails—include-dependencies (emphasis on sudo). I think the rake aborted when we tried to feed it the rails:update task because we didn’t in fact have Rails 1.1 installed yet.
By extension, perhaps the gem does not install with using sudo?
Good luck!
http://ajaxonrails.blogspot.com
rails everywhere
rails everywhere