Alex Rivera | Logout

Undefined method `name' for "SystemTimer":String

Asked 2011-05-19T21:20:07.097
12

I am having a problem getting an old Ruby on Rails 2 app that hasn't worked in a year to work.

I'm trying to run rake test:functionals in the root of my project directory, but am getting undefined method 'name' for "SystemTimer":String.

I've pasted everything that I believe relevant to the problem here: http://pastebin.com/NgBvystZ

Also, when I run rake itself, I get Errors running test:units! Not sure how to debug that.

I have copied and pasted everything that I think would be useful to understanding this problem. Your time is greatly appreciated. Thank you.

Edit
Report

1 Answer

4

I chanced upon this thread, because I got the following error when migrating some Radiant 0.9.1 installations to a new server:

undefined method `name' for "RedCloth":String

(3) The compromising solution: I haven't tested this personally, but I hear that rails 2.3 with bundler is compatible with the latest rubygems. If you're interested in this solution, see http://gembundler.com/rails23.html for getting bundler to work under rails 2.3.

For me solution 3 was the only option, since we had other apps needing the latest rubygems on the system. Just install bundler and follow thes steps on this page: http://gembundler.com/rails23.html

And put this in a file called "Gemfile" in the app root:

source :gemcutter
gem "radiant", "0.9.1"
gem "sanitize"
gem "fastercsv"
gem "rmagick"
gem "rack", "~> 1.1.0"
gem "rake", ">= 0.8.3"
gem "RedCloth", ">= 4.0.0"
gem "will_paginate", "~> 2.3.11"
gem "mysql"

This is just my example. Start with only the first 2 lines, run bundle update and reload the page to see what else you might be missing.

Thank you Ben!

answered 2011-11-05T18:54:11.637

Your Answer